Skip to content

Commit

Permalink
Check to see if a test should be run before running it
Browse files Browse the repository at this point in the history
  • Loading branch information
shs96c committed Dec 1, 2020
1 parent 7fa8355 commit 3865a8c
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import com.google.common.net.MediaType;
import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
Expand All @@ -44,6 +45,11 @@ public class NetworkInterceptorTest {
private WebDriver driver;
private NetworkInterceptor interceptor;

@BeforeClass
public static void shouldTestBeRunAtAll() {
assumeThat(Boolean.getBoolean("selenium.skiptest")).isFalse();
}

@Before
public void setup() {
appServer = new NettyAppServer(req -> new HttpResponse()
Expand Down

0 comments on commit 3865a8c

Please sign in to comment.