Réda Housni Alaoui created MBUILDCACHE-103:
----------------------------------------------

             Summary: Unable to optimally reconcile maven-surefire-plugin 
'groups' property
                 Key: MBUILDCACHE-103
                 URL: https://issues.apache.org/jira/browse/MBUILDCACHE-103
             Project: Maven Build Cache Extension
          Issue Type: Improvement
            Reporter: Réda Housni Alaoui


Property {{groups}} of {{maven-surefire-plugin}} allows to run a subset of 
tests matching the property value. E.g. {{groups=foo}} will only execute tests 
tagged with 'foo'.

If I run a build with {{groups=foo}}, and if a cache entry exists for 
{{groups=null}} (i.e. no test filter), I want the cache entry to be reused as 
much as possible and the {{maven-surefire-plugin}} to be run on top of that.

I think I need to specify that every non null value for groups should be 
considered as a skip value.
Following this, what I need is the ability to declare a reconcile entry in xml 
config file looking like this:
{code:xml}
<cache>
 <executionControl>
    <reconcile>
      <plugins>
        <plugin artifactId="maven-surefire-plugin" goal="test">
          <reconciles>
            <reconcile propertyName="groups" skipValueRegex=".+"/>
          </reconciles>
        </plugin>
      </plugins>
    </reconcile>
  </executionControl>
</cache>
{code}

Could we introduce this {{skipValueRegex}} that would allow to match multiple 
skip values and fix my issue?



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to