Description
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?