Skip to content

Commit 96a55f1

Browse files
committed
Drop @ignore from perf/PerformanceTest; instead add to pom surefire excludes
This makes it possible to run the test without needing to edit the source file. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1397859 13f79535-47bb-0310-9956-ffa450edef68
1 parent d992442 commit 96a55f1

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

pom.xml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,16 @@ CSV files of various types.
120120
</descriptors>
121121
<tarLongFileMode>gnu</tarLongFileMode>
122122
</configuration>
123-
</plugin>
123+
</plugin>
124+
<plugin>
125+
<groupId>org.apache.maven.plugins</groupId>
126+
<artifactId>maven-surefire-plugin</artifactId>
127+
<configuration>
128+
<excludes>
129+
<exclude>**/perf/PerformanceTest.java</exclude>
130+
</excludes>
131+
</configuration>
132+
</plugin>
124133
</plugins>
125134
</build>
126135

src/test/java/org/apache/commons/csv/perf/PerformanceTest.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@
3333
import org.apache.commons.csv.CSVRecord;
3434
import org.apache.commons.io.IOUtils;
3535
import org.junit.BeforeClass;
36-
import org.junit.Ignore;
3736
import org.junit.Test;
3837

3938
/**
4039
* Tests performance.
4140
*
42-
* Only enable for your own development.
41+
* To run this test, use: mvn test -Dtest=PeformanceTest
4342
*/
44-
@Ignore
4543
public class PerformanceTest {
4644

4745
private final int max = 10;

0 commit comments

Comments
 (0)