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

Feature request: put test file in a subdirectory #23

Closed
toejough opened this issue Aug 4, 2024 · 2 comments
Closed

Feature request: put test file in a subdirectory #23

toejough opened this issue Aug 4, 2024 · 2 comments

Comments

@toejough
Copy link

toejough commented Aug 4, 2024

I'd like to be able to put the test file in a subdirectory.

When I try to put it in ./tests like all my other test files, though, ooze doesn't find any code to test.

Happy to try to help, too, if you can point me in the right direction in the code. This is a great tool - thank you for building it!

@gtramontina
Copy link
Owner

Hey @toejough… apologies for the late reply, and thank you for the kind words.

Is your ooze test file under that same ./tests directory? Have you tried setting the repository root to something like ../?

@toejough
Copy link
Author

wow, yep, that's all I had to do. repo root .. and then just adjust the testing line to be go test -v -tags=mutation ./... to make go test find it alongside the other files.

I do have to force the colors now to get those to show up, but I'm guessing that's a go test thing with output management.

Thanks for the response!

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