maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leo Laskin <>
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"}
public void testA{ Do Stuff }

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

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

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 but wish had been implemented

Thanks for any help/suggestions you can provide.

*Leo Laskin*
Automation Architect, Spredfast Inc.
E ::
Spredfast Inc.´s Twitter <!/Spredfast> | Facebook
<> | Blog <>

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