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
Test functions on custom test source sets are treated as non test functions #5896
Comments
I asume that you are using the default configuration. There that rule have this configuration: excludes: ['**/test/**', '**/androidTest/**', '**/commonTest/**', '**/jvmTest/**', '**/androidUnitTest/**', '**/androidInstrumentedTest/**', '**/jsTest/**', '**/iosTest/**'] As you can see |
Since there is nothing actionable here, I close this issue. If not, please leave a comment. |
I missed this notification. I think the rule should find for @schalkms @BraisGabin should I open a different issue or this is valid for this feature request? |
@JavierSegoviaCordoba If #5412 does not already fit for your use case, please add your thoughts to this issue. |
Does adding an additional |
@andersfischernielsen to my knowledge, there is no merging but rather a overriding mechanism with |
That's a shame - I was hoping we could extend the existing excludes rather than replace them. But thanks nonetheless! |
@andersfischernielsen related discussion, which essentially proposes a solution to your scenario. |
Expected Behavior
Any test function should allow to use backticks and spaces even if it is not on an "official" test source set
Observed Behavior
I have created custom source sets for different type tests,
testIntegration
andtestFunctional
and the functions reported on those source sets are marked by detekt, for example:Steps to Reproduce
The repo with the function mentioned above can be found here
I know it is not a good solution, but Detekt should check if a source set contains the word
test
orTest
in order to apply some rules or others as, I think, it is impossible to know if a custom source set or configuration is for tests or not.The text was updated successfully, but these errors were encountered: