Skip to content

Commit

Permalink
test onw ignore-tests at a time
Browse files Browse the repository at this point in the history
  • Loading branch information
Neenu1995 committed Nov 7, 2023
1 parent fc1d048 commit bc7fcdc
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 16 deletions.
3 changes: 2 additions & 1 deletion .kokoro/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ javadoc)
integration)
mvn -B ${INTEGRATION_TEST_ARGS} \
-Penable-integration-tests \
-Pcustom-tests \
-Dtest=!ITBigQueryWriteNonQuotaRetryTest \
-Dsurefire.failIfNoSpecifiedTests=false \
-DtrimStackTrace=false \
-Dclirr.skip=true \
-Denforcer.skip=true \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class BigQueryReadClientTest {
private static MockBigQueryRead mockBigQueryRead;
private static MockServiceHelper serviceHelper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
import org.junit.AfterClass;
import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

/**
* Integration tests for BigQuery Storage API which target long running sessions. These tests can be
* enabled by setting the system property 'bigquery.storage.enable_long_running_tests' to true.
*/
@Ignore
public class ITBigQueryStorageLongRunningTest {

private static final Logger LOG =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
import org.apache.avro.util.Utf8;
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.threeten.bp.Duration;
import org.threeten.bp.Instant;
Expand All @@ -81,6 +82,7 @@
import org.threeten.bp.format.DateTimeFormatter;

/** Integration tests for BigQuery Storage API. */
@Ignore
public class ITBigQueryStorageTest {

private static final Logger LOG = Logger.getLogger(ITBigQueryStorageTest.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.threeten.bp.LocalDateTime;

/** Integration tests for BigQuery Write API. */
@Ignore
public class ITBigQueryWriteManualClientTest {
private static final Logger LOG =
Logger.getLogger(ITBigQueryWriteManualClientTest.class.getName());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,12 @@
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import org.threeten.bp.Duration;

/** Integration tests for BigQuery Write API. */
@Ignore
public class ITBigQueryWriteQuotaRetryTest {
private static final Logger LOG = Logger.getLogger(ITBigQueryWriteQuotaRetryTest.class.getName());
private static final String DATASET = RemoteBigQueryHelper.generateDatasetName();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,10 @@
import org.junit.Assert;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;

@Ignore
public class BigQueryStorageClientTest {
private static MockBigQueryStorage mockBigQueryStorage;
private static MockServiceHelper serviceHelper;
Expand Down
33 changes: 18 additions & 15 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -263,21 +263,24 @@
</profile>
<profile>
<id>custom-tests</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<excludes>
<exclude>**/ITBigQueryWriteQuotaRetryTest.java</exclude>
<exclude>**/ITBigQueryWriteNonQuotaRetryTest.java</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
<properties>
<exclude.tests>**/ITBigQueryWrite*RetryTest.java</exclude.tests>
</properties>
<!-- <build>-->
<!-- <plugins>-->
<!-- <plugin>-->
<!-- <groupId>org.apache.maven.plugins</groupId>-->
<!-- <artifactId>maven-surefire-plugin</artifactId>-->
<!-- <version>3.2.1</version>-->
<!-- <configuration>-->
<!-- <excludes>-->
<!-- <exclude>**/ITBigQueryWriteQuotaRetryTest.java</exclude>-->
<!-- <exclude>**/ITBigQueryWriteNonQuotaRetryTest.java</exclude>-->
<!-- </excludes>-->
<!-- </configuration>-->
<!-- </plugin>-->
<!-- </plugins>-->
<!-- </build>-->
</profile>
</profiles>

Expand Down

0 comments on commit bc7fcdc

Please sign in to comment.