maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Laskin <llas...@spredfast.com>
Subject Running a specific intersection of tests using maven/spring/junit?
Date Mon, 30 Mar 2015 11:56:34 GMT
I have a number of tests identified using the Spring @IfProfileValue flag

@IfProfileValue{"a", "c"}
@Test
public void testA{ Do Stuff }

@IfProfileValue{"a", "b"}
@Test
public void testB{ Do Stuff }

@IfProfileValue{"a", "b"}
@Test
public void testC{ Do Stuff }

@IfProfileValue{"b"}
@Test
public void testD{ Do Stuff }
I can run all the tests using
"mvn clean install -Dtest-group=a -Dtest-group=b"

I want to run only the tests that match @IfProfileValue={"a","b") (Test
B/C) so is there a way to run only an intersection of these two values
using maven?

I saw https://jira.codehaus.org/browse/SUREFIRE-809 but wish
https://jira.codehaus.org/browse/SUREFIRE-808 had been implemented

Thanks for any help/suggestions you can provide.

-- 
*Leo Laskin*
Automation Architect, Spredfast Inc.
E :: llaskin@spredfast.com
Spredfast Inc.´s Twitter <https://twitter.com/#!/Spredfast> | Facebook
<http://www.facebook.com/Spredfast> | Blog <http://www.spredfast.com/blog/>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message