pkgjs / parseargs

Polyfill of `util.parseArgs()`
Apache License 2.0
121 stars 9 forks source link

Multiple test files? #66

Closed shadowspawn closed 2 years ago

shadowspawn commented 2 years ago

Light question. Does the current testing infrastructure using tape and c8 support multiple test files, without writing a test runner? e.g. adding test/multiple.js


I have not previously used tape or c8. After some research and experimentation I found this appears to work on Mac, but I am not sure about Windows. (Or whether it is actually doing what I intend! 🤔).

npx c8 tape test/*.js
ljharb commented 2 years ago

Yes, tape supports multiple files - altho paths with asterisks need to be quoted to prevent the shell interpreting them first.

shadowspawn commented 2 years ago

Thanks. Used multiple test files in #68