Support test files that are not located in the `test` folder
I have some projects, where I keep my tests along their implementation, like
- controllers/post_controller.ex
- controllers/post_controller_test.exs
archeometer
is failing on those projects. I had to adjust the condition for is_test
to look like this:
## in Archeometer.Collect.Static
# is_test = Enum.any?(test_paths, &String.starts_with?(path <> "\/", &1)) <-- current implementation
is_test = String.ends_with?(path, "_test.exs")
This seems to be a more inclusive way to determine, whether a file might be a test file. I hope it is possible to add this small adjustment into archeometer
Thanks!