{"action":"created","issue":{"url":"https://api.github.com/repos/avajs/atom-ava/issues/13","repository_url":"https://api.github.com/repos/avajs/atom-ava","labels_url":"https://api.github.com/repos/avajs/atom-ava/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/avajs/atom-ava/issues/13/comments","events_url":"https://api.github.com/repos/avajs/atom-ava/issues/13/events","html_url":"https://github.com/avajs/atom-ava/issues/13","id":154855008,"number":13,"title":"Support running all tests in a project","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/avajs/atom-ava/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-05-14T13:59:20Z","updated_at":"2016-05-17T22:09:12Z","closed_at":null,"body":"With https://github.com/sindresorhus/atom-ava/pull/8, you have to go into the test file you want to run. Would be nice if you could run all tests in a project from anywhere in the project, even if no files are open. Since we're just spawning AVA, we can just spawn it without any file arguments and it will handle the logic of finding the project root and running all test files.\r\n\r\nShould we have a separate keyboard shortcut for this? Or maybe we could always run all files unless the user is in a specific test file, then we just run that test file? Or is that too magic?\r\n\r\n-\r\n\r\n// @jacobmendoza"},"comment":{"url":"https://api.github.com/repos/avajs/atom-ava/issues/comments/219869329","html_url":"https://github.com/avajs/atom-ava/issues/13#issuecomment-219869329","issue_url":"https://api.github.com/repos/avajs/atom-ava/issues/13","id":219869329,"user":{"login":"jacobmendoza","id":2363912,"avatar_url":"https://avatars.githubusercontent.com/u/2363912?v=3","gravatar_id":"","url":"https://api.github.com/users/jacobmendoza","html_url":"https://github.com/jacobmendoza","followers_url":"https://api.github.com/users/jacobmendoza/followers","following_url":"https://api.github.com/users/jacobmendoza/following{/other_user}","gists_url":"https://api.github.com/users/jacobmendoza/gists{/gist_id}","starred_url":"https://api.github.com/users/jacobmendoza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacobmendoza/subscriptions","organizations_url":"https://api.github.com/users/jacobmendoza/orgs","repos_url":"https://api.github.com/users/jacobmendoza/repos","events_url":"https://api.github.com/users/jacobmendoza/events{/privacy}","received_events_url":"https://api.github.com/users/jacobmendoza/received_events","type":"User","site_admin":false},"created_at":"2016-05-17T22:09:12Z","updated_at":"2016-05-17T22:09:12Z","body":"Sorry, I did not have my best moment trying to explain this the other day.\r\n\r\nThe package launches now the following command:\r\n`ava somefile.js --tap`\r\n\r\nMy intention was add a different case for running all the tests as:\r\n`ava --tap`\r\n\r\nAs James said, running AVA in the main folder already discovers the tests and you don't need to worry about that. If the convention that AVA uses now ('test.js', 'test-*.js', 'test') changes in the future, we don't have any extra maintenance point. What I missed completely was that the TAP reporter is already writing some information about the file when multiple files are included!.\r\n\r\nWhen running AVA with files named as test-*.js (test-111.js, test-1.js, sometest-after.js) the word test gets removed (111, 1, someafter). As far as I've seen, the reporter is already receiving the title in that format. What is the intent? Is trying to improve readability skipping the 'test' part?.\r\n\r\nWhat I wonder is, how do we want the Atom package to behave?. I thought that we were going to display the filenames, but maybe you want to see this friendly version, assuming that I got the motivation right.\r\n\r\nThank you! :)"}}