From 96a55f1d2b0e5448e98edf205f98cadb1c514cb9 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Sat, 13 Oct 2012 15:30:07 +0000 Subject: [PATCH] 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 --- pom.xml | 11 ++++++++++- .../org/apache/commons/csv/perf/PerformanceTest.java | 4 +--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/pom.xml b/pom.xml index e023e6d8..8f659931 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,16 @@ CSV files of various types. gnu - + + + org.apache.maven.plugins + maven-surefire-plugin + + + **/perf/PerformanceTest.java + + + diff --git a/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java b/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java index 943075eb..b99defdb 100644 --- a/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java +++ b/src/test/java/org/apache/commons/csv/perf/PerformanceTest.java @@ -33,15 +33,13 @@ import org.apache.commons.csv.CSVFormat; import org.apache.commons.csv.CSVRecord; import org.apache.commons.io.IOUtils; import org.junit.BeforeClass; -import org.junit.Ignore; import org.junit.Test; /** * Tests performance. * - * Only enable for your own development. + * To run this test, use: mvn test -Dtest=PeformanceTest */ -@Ignore public class PerformanceTest { private final int max = 10;