Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple test files? #66

Closed
shadowspawn opened this issue Feb 24, 2022 · 2 comments
Closed

Multiple test files? #66

shadowspawn opened this issue Feb 24, 2022 · 2 comments

Comments

@shadowspawn
Copy link
Collaborator

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
Copy link
Member

ljharb commented Feb 24, 2022

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

@shadowspawn
Copy link
Collaborator Author

Thanks. Used multiple test files in #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants