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
but *.spec.{js,cjs,mjs} already includes everything, so if the environment is node it would also end up running test for browser it should ignore browser
To Reproduce
in the tests folder, create test:
node.spec.js
browser.spec.js
test.spec.js
Run tests: aegir test --target node.
Expected behavior
Only the following tests should Run:
node.spec.js
test.spec.js
Instead all three run.
The text was updated successfully, but these errors were encountered:
Most modules that use aegir have isomorphic tests that match *.spec.js. Some modules do not, they have, for example node.js that imports node tests and browser.js that imports browser tests. These environment-specific tests aren't usually named *.spec.js.
One of the things that has bothered me about the current method of using node.js or browser.js files is it is difficult to run individual test files for given environments.
For example, if I wanted to run the tests for "build" in aegir, I'd have to run mocha directly against the test file after making sure all the usual set up is correct.
So, rather than running the tests just for build I run the tests for everything just to run the tests for build.
Describe the bug
The test runner produces the following pattern for testing:
but
*.spec.{js,cjs,mjs}
already includes everything, so if the environment isnode
it would also end up running test forbrowser
it should ignorebrowser
To Reproduce
in the
tests
folder, create test:node.spec.js
browser.spec.js
test.spec.js
Run tests:
aegir test --target node
.Expected behavior
Only the following tests should Run:
node.spec.js
test.spec.js
Instead all three run.
The text was updated successfully, but these errors were encountered: