using regexp for file name in Search dialog

hi!
I am looking into separating unit and integration tests in a project and I want to find usages of a certain string  - say, "ABC" in all files in the project that are named *Test.java, but not in *IntegrationTest.java.
in other words, I want to find string "ABC" only in tests that pretend to be unit-tests but are in fact integration-style.

so to do this I was looking at "Find in path" dialog in IDEA and I tried entering regex values for "File name" field.
that did not work. the Help shown by that dialog says only wildcards are allowed.

what would be the best way to achieve this in IDEA? (well, apart from reverting to command line grep :) )

2 comments
Comment actions Permalink

You could probably achieve this by using a custom scope.
https://www.jetbrains.com/idea/help/scopes.html

Bas

0
Comment actions Permalink

great, looks like this scope expression is what I need:

test:*..*Test&&!test:*..*IntegrationTest

0

Please sign in to leave a comment.