-
Notifications
You must be signed in to change notification settings - Fork 12
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
Refactor TestVerifier logic #187
Comments
One technical comment regarding to the code of In other words, consider test suite containing two test classes:
and inclusion: Are you aware of it? As a side effect, the affected method should also work on |
@MatousJobanek yes but at this point we cannot do more. We need to rewrite how to detect that a test is a test, and from surefire point of view |
Of course that from the surefire point of view it is not a test. But surefire doesn't use the non-test classes for some additional analysis as we do. |
Maybe it will be worth to debug and see what's happening to understand why they are not executed, because I think it will have sense that they are executed. |
Issue Overview
Currently
TestVerifier
class verifies if a file coming from SCM is a test by checking if it is a java file (ends with.java
), if so it extracts the class name and then checks against the list of detected tests by surefire. If test class is in the list, then this is considered a test.This works for Java projects but not for other JVM languages like Groovy or Scala and also does not work in case of wanting to create a meta decision related to some specific file (i.e user modifies
persistence.xml
).For this reason this part must be refactored to a more extendible way like following a handle chain/compose pattern where each of the strategy can decide/filter what kind of files are important for him.
Expected Behaviour
Allow strategies to filter the kind of files they can use.
Current Behaviour
Smart Testing only works for
.java
filesThe text was updated successfully, but these errors were encountered: