vscode-elixir-test icon indicating copy to clipboard operation
vscode-elixir-test copied to clipboard

Jump between test file and actual file not working im module name also contains "Test"

Open rrrene opened this issue 2 years ago • 2 comments

When in a file wrong_test_file_extension.ex and trying to jumpo to wrong_test_file_extension_test.exs, it tries to jump somewhere it can't find (probably wrong_file_extension_test.exs ).

It is probably this part of the code that is responsible, since it just assumes that nothing will ever have "_test" in the filename anywhere except an actual test:

https://github.com/samuelpordeus/vscode-elixir-test/blob/c79c6078706987ecb3ca00d1061fe74b3f2f2c0b/src/commands/jumpToTest.js#L100

rrrene avatar Feb 05 '24 08:02 rrrene

Following up: Any news on this? 🙂

rrrene avatar Apr 12 '24 08:04 rrrene

I'm also running into this issue. I maintain the mix_test_interactive project, and pretty much every file and module name has Test in the name.

randycoulman avatar Sep 07 '24 23:09 randycoulman