-
-
Notifications
You must be signed in to change notification settings - Fork 3
Runner fails if an array of testPaths are given and the folders are missing #167
Comments
I don't think failing silently is the right approach. If someone misspells a test path they should be alerted to the error instead of needing to debug why it is not finding any tests. |
@UziTech A message must be enough. Jasmine itself (or any other test framework I am aware of) does not fail when it does not find any tests. |
Jasmine and jest both fail if no tests are found. I think a better solution to the problem "Runner fails if a folder is missing" is to remove or create that folder. Errors are meant to alert the user of something that is wrong to make debugging easier. That error seems to do that pretty well. |
I made this optional defaulting to false to eliminate any debates 😄 This is a must for a monorepo in which I want to set a general test runner and not configure it for every single package. |
This seems like an unnecessary option since the runner.js file is dynamic and testPaths can change based on where it is run from. This seems like an issue that should be solved in your repo not for everyone using atom-jasmine3-test-runner. This is called feature creep. |
Well, I think there are enough customers for this feature that we should consider it. Another potential customer is Atom itself which runs the tests for all of its packages. Many packages such as "language-*" do not have any tests, but the test runner skips those I think this and #166 were two of the reasons that because of whom atom-community/atom#57 was failing. |
This is why the options are sent in a This sort of dynamic config allows atom-jasmine3-test-runner to not have a lot of options. Since this is something that can be solved without changing atom-jasmine3-test-runner I don't see any reason to change it. |
This issue is about a folder passed to I think the solution for that problem should be to add tests, even if they are simple tests making sure they don't fail on activate. |
This results in atom-jasmine3-test-runner-runner 😄. OK. That's fine. I can't create this package, but the name would be funny. |
You don't have to create aseparate package. You would change the code in https://github.com/atom-ide-community/atom-ide-base/pull/33/files#diff-6bc7bbee028394434de4b833d18636d86df3811726d16d0be0cb56446a4676acR8 Instead of sending the array ( |
atom-community/atom-ide-base#33 (review) is how you should fix this. |
PR and its issue were rejected: UziTech/atom-jasmine3-test-runner#167
Runner fails if an array of testPaths are given and the folders are missing. Here I gave two folders, but because the next one is missing the runner fails. There should be a check before erroring.
The text was updated successfully, but these errors were encountered: