Skip to content
This repository was archived by the owner on Jan 11, 2019. It is now read-only.

Automatic file detection #1

Closed
jamestalmage opened this issue Apr 2, 2016 · 3 comments
Closed

Automatic file detection #1

jamestalmage opened this issue Apr 2, 2016 · 3 comments

Comments

@jamestalmage
Copy link
Contributor

For codemods like same => deepEquals, we should just examine the AVA config in package.json to determine which files are test files, which are sources, etc.

We could do similar things for mocha/tap/etc by parsing their configs. (not sure we want to go down that road).

@jfmengels
Copy link
Contributor

I understand your reasoning behind for the first part, but that may not include test helper files. For instance, if your tests are in test.js, and you wrote your assertion helpers (which use t.same()) in test-helper.js, then you would not update the right file.

@jamestalmage
Copy link
Contributor Author

Right, our code would need to figure that out. The convention is they can be in a helpers folder, or prefixed with a _.

I think we should do this once, in AVA itself, so other modules can reuse it: avajs/ava#700

@vadimdemedes
Copy link

And we shouldn't forget about fixtures.

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

No branches or pull requests

4 participants