{"action":"created","issue":{"url":"https://api.github.com/repos/mochajs/mocha/issues/98","repository_url":"https://api.github.com/repos/mochajs/mocha","labels_url":"https://api.github.com/repos/mochajs/mocha/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/mochajs/mocha/issues/98/comments","events_url":"https://api.github.com/repos/mochajs/mocha/issues/98/events","html_url":"https://github.com/mochajs/mocha/issues/98","id":2399788,"number":98,"title":"Running tests asynchronously","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":18,"created_at":"2011-11-30T10:56:14Z","updated_at":"2016-02-25T16:55:51Z","closed_at":"2011-11-30T14:05:28Z","body":"Is there a way for me to run the tests asynchronously.\r\n\r\nI am testing my HTTP API for a database and each HTTP request takes 1-2 sec to finish and it would be really good if the tests are run asynchronously so each test doesn't have to wait for the test before to finish.\r\n\r\nThat would cut down the testing time to 1-2 sec instead of adding 1-2 sec for each test."},"comment":{"url":"https://api.github.com/repos/mochajs/mocha/issues/comments/188876963","html_url":"https://github.com/mochajs/mocha/issues/98#issuecomment-188876963","issue_url":"https://api.github.com/repos/mochajs/mocha/issues/98","id":188876963,"user":{"login":"kumar303","id":55398,"avatar_url":"https://avatars.githubusercontent.com/u/55398?v=3","gravatar_id":"","url":"https://api.github.com/users/kumar303","html_url":"https://github.com/kumar303","followers_url":"https://api.github.com/users/kumar303/followers","following_url":"https://api.github.com/users/kumar303/following{/other_user}","gists_url":"https://api.github.com/users/kumar303/gists{/gist_id}","starred_url":"https://api.github.com/users/kumar303/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumar303/subscriptions","organizations_url":"https://api.github.com/users/kumar303/orgs","repos_url":"https://api.github.com/users/kumar303/repos","events_url":"https://api.github.com/users/kumar303/events{/privacy}","received_events_url":"https://api.github.com/users/kumar303/received_events","type":"User","site_admin":false},"created_at":"2016-02-25T16:55:51Z","updated_at":"2016-02-25T16:55:51Z","body":"There is a third party module ([mocha.parallel](https://github.com/danielstjules/mocha.parallel/)) where you can opt-in a suite of tests by replacing `describe()` with `parallel()`.  I think this should be pretty safe as long as you know your tests are not patching any shared objects. It can speed things up if the functions under test are IO bound."}}