You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 7, 2018. It is now read-only.
A summary is written for a browser test run, even if there were no matching test files. This explains the behaviour of the first test run. I haven't investigated that problem yet.
Test runs for node are not always ended correctly. The cause of that problem is, that the callback function, used in test-cli.js#runConfigGroups to iterate over the config groups, isn't called in any case. This explains the second and third test run. In both cases there is no matching test file for the node environment and as a result the end callback passed to auto-run in node.js#runTests is never called, which in turn would call the callback to process the next configuration group. I don't think we have that problem for the browser environment, but i am not entirely sure.
First attempt to solve the second problem was to filter groups without matching test files out of the config at the load:tests event, but that seems to be to late, because we are already iterating over the groups at that time. Further, no matching test files isn't the only problem. You can also have one matching test file, but without a test case declared. This leads to the same behaviour.
Instead, the problem with no matching test files for the node environment could be solved by changing the first line of node.js#runTests from
if (this.aborted) { return; }
to
if (this.aborted || rs.loadPath.paths().length === 0) { return this.done(); }
But this doesn't solve the problem with a matching test file without a test case. For that issue we have to change test-runner.js#runSuite i guess, to check the number of contexts and handle the case of no contexts specifically.
@cjohansen: Could you please have a closer look at the whole issue and tell me, what you think about it?
Re: 0 tests, I agree - we need to handle this specifically. These runners will be rewritten by @magnars and me very soon, so I really want to postpone this issue for that. There are multiple problems with the current implementations, and there's too little in common for the two runners to solve them in a meaningful way.
Ok, then i fix all except the case that you have a test file without a test case declared and close this issue. For the remaining case i will open a new issue and assign it to @magnars.
Using that hybrid configuration leads to the following weird behavior on at least linux and windows:
Changing the order of the configuration groups in the config file leads to the following weird bevaviour:
The text was updated successfully, but these errors were encountered: