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
Currently if the htest command is used with no arguments, it defaults to the CWD, which is not super useful.
Perhaps it would be more useful to default to test? Or test if it exists and the CWD if not?
From a quick look, it appears that there is no established convention. Some testing frameworks to test (e.g. Mocha), others to many different patterns (e.g. Jest, AVA), others to CWD, and others don't have a default at all.
However, given how hTest is structured, with tests hierarchically importing other tests, we probably wouldn't want to do something like **/test/**.js because then you'd be importing the same test multiple times (e.g. once by itself, and then once via the index.js that imports it. Perhaps something like **/test/index.js, **/tests/index.js might be a good default?
The text was updated successfully, but these errors were encountered:
Currently if the
htest
command is used with no arguments, it defaults to the CWD, which is not super useful.Perhaps it would be more useful to default to
test
? Ortest
if it exists and the CWD if not?From a quick look, it appears that there is no established convention. Some testing frameworks to
test
(e.g. Mocha), others to many different patterns (e.g. Jest, AVA), others to CWD, and others don't have a default at all.However, given how hTest is structured, with tests hierarchically importing other tests, we probably wouldn't want to do something like
**/test/**.js
because then you'd be importing the same test multiple times (e.g. once by itself, and then once via theindex.js
that imports it. Perhaps something like**/test/index.js, **/tests/index.js
might be a good default?The text was updated successfully, but these errors were encountered: