Skip to content

Commit 3865a8c

Browse files
committed
Check to see if a test should be run before running it
1 parent 7fa8355 commit 3865a8c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

java/client/test/org/openqa/selenium/support/devtools/NetworkInterceptorTest.java

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
import com.google.common.net.MediaType;
2121
import org.junit.After;
2222
import org.junit.Before;
23+
import org.junit.BeforeClass;
2324
import org.junit.Test;
2425
import org.openqa.selenium.By;
2526
import org.openqa.selenium.WebDriver;
@@ -44,6 +45,11 @@ public class NetworkInterceptorTest {
4445
private WebDriver driver;
4546
private NetworkInterceptor interceptor;
4647

48+
@BeforeClass
49+
public static void shouldTestBeRunAtAll() {
50+
assumeThat(Boolean.getBoolean("selenium.skiptest")).isFalse();
51+
}
52+
4753
@Before
4854
public void setup() {
4955
appServer = new NettyAppServer(req -> new HttpResponse()

0 commit comments

Comments
 (0)