"0 test classes found in package '<default package>'" with pattern

Answered

The pattern definition of tests has some surprising behavior. If I use the pattern:

"oracle.kubernetes.operator.wlsconfig.*ConfigTest"

I get a number of tests, including:
WlsServerConfigTest
WlsDomainConfigTest
DynamicConfigTest

but if I try to limit that further, using:

"oracle.kubernetes.operator.wlsconfig.Wls*ConfigTest"

If an asterisk in the middle is not supported, it would be helpful if an error message was issued when editing.

It reports "0 test classes found in package '<default package>'"

0
2 comments

Hello Russel,

I reported issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-198073

 

0

Russel,

It's a regexp pattern, ".*" is expected instead of "*".

0

Please sign in to leave a comment.