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

ava Couldn’t find any files to test #2582

Closed
itaven opened this issue Sep 15, 2020 · 1 comment
Closed

ava Couldn’t find any files to test #2582

itaven opened this issue Sep 15, 2020 · 1 comment

Comments

@itaven
Copy link

itaven commented Sep 15, 2020

I`m trying to do the agile structure of my test framework using ava.
My structure is :
--project
--automation
--tests
-qwe.test.js
--test-helpers
--suites

But ava is only recognized the and running tests in
--project
--test
--qwe.test.js by using - ava -T 60000 -v(npm run test)

I saw some issues according to this problem and no one didn't help me to resolve it.

ava -T 60000 -v automaton/tests/qwe.test.js is also not working and throwing 'Couldn’t find any files to test'

ENV.
"ava": "^3.12.1"

@novemberborn
Copy link
Member

Yes see https://github.com/avajs/ava/blob/master/docs/05-command-line.md#cli which describes where AVA looks for tests (scroll down a bit beyond the CLI usage snippet).

You can replace these patterns using the files configuration, see https://github.com/avajs/ava/blob/master/docs/06-configuration.md.

Any paths or patterns you pass directly on the CLI are used as a filter over the files configuration. But if you specify a path to a non-existent file then AVA won't be able to do anything. We have an open issue to improve the feedback: #2373

I can't tell what's going on based on the details you've provided, but hopefully this gives some more context. If you could share more of your project tree that could help.

(I'm closing this issue for housekeeping purposes, but let's keep the conversation going.)

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

No branches or pull requests

2 participants