Skip to content

Commit 010b3fc

Browse files
committed
Change each test profile running only its category
Previously, "long" test profile would run tests of "unit", "short" and "long" categories. After this change, each profile only runs its own category.
1 parent 76f7715 commit 010b3fc

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The Maven build uses profiles named after the categories to choose which tests t
8989
mvn test -Pshort
9090
```
9191

92-
The default is "unit". Each profile runs the ones before it ("short" runs unit, etc.)
92+
The default is "unit". Each profile runs only their own category ("short" will *not* run "unit").
9393

9494
Integration tests use [CCM](https://github.com/pcmanus/ccm) to bootstrap Cassandra instances.
9595
Two Maven properties control its execution:

pom.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -951,31 +951,31 @@
951951
<profile>
952952
<id>short</id>
953953
<properties>
954-
<test.groups>unit,short</test.groups>
954+
<test.groups>short</test.groups>
955955
<test.osgi.skip>false</test.osgi.skip>
956956
</properties>
957957
</profile>
958958

959959
<profile>
960960
<id>long</id>
961961
<properties>
962-
<test.groups>unit,short,long</test.groups>
962+
<test.groups>long</test.groups>
963963
<test.osgi.skip>false</test.osgi.skip>
964964
</properties>
965965
</profile>
966966

967967
<profile>
968968
<id>duration</id>
969969
<properties>
970-
<test.groups>unit,short,long,duration</test.groups>
970+
<test.groups>duration</test.groups>
971971
<test.osgi.skip>false</test.osgi.skip>
972972
</properties>
973973
</profile>
974974

975975
<profile>
976976
<id>doc</id>
977977
<properties>
978-
<test.groups>unit,doc</test.groups>
978+
<test.groups>doc</test.groups>
979979
</properties>
980980
</profile>
981981

0 commit comments

Comments
 (0)