Open arasevic opened 5 years ago
How does the fixture file system for the test harness become readily available for each spec without explicitly importing it?
Also, based off of the instructions in the README
, I should be able to execute a single spec from inside the __tests__
directory. e.g. npx asp packages/ash/assembly/__tests__/wc.spec.ts
should only run that single spec but it actually runs the entire suite.
Given the current number of tests in the suite it's not a big deal but as the project grows it would be nice to be able to run an individual test file - not to mention when working on a new feature it would be nice to only see the tests related to what you are developing.
1) It's in __test__/fixtures.ts. Since you import something from that file, it's
beforeAllfunction is registered with
as-pectwhich then imports the json string in
simple_fs.ts`, parses it, and recursively adds each directory and file.
2) You're missing the file flag. npx asp -f wc
or npx asp --file wc
works for me locally. And the next feature is to be able to filter on test names too.
Aspect is a brand new tool and a lot of the features we desperately need haven't been developed yet. I could use some help on the runtime branch to match test names using the --test and --group flags!
only implementing with -l flag functionality initially