Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import static org.junit.Assume.assumeNotNull;

public class BrowserStackLocalTest {
private Local l;
Expand All @@ -23,13 +24,21 @@ public void setUp() throws Exception {

@Test
public void testIsRunning() throws Exception {
// Live integration test: starts a real BrowserStack Local tunnel, so it
// requires a valid BROWSERSTACK_ACCESS_KEY (provided via CI secrets).
// Skip gracefully when the key is absent instead of failing with an NPE.
assumeNotNull(System.getenv("BROWSERSTACK_ACCESS_KEY"));
assertFalse(l.isRunning());
l.start(options);
assertTrue(l.isRunning());
}

@Test
public void testMultipleBinary() throws Exception {
// Live integration test: starts real BrowserStack Local tunnels, so it
// requires a valid BROWSERSTACK_ACCESS_KEY (provided via CI secrets).
// Skip gracefully when the key is absent instead of failing with an NPE.
assumeNotNull(System.getenv("BROWSERSTACK_ACCESS_KEY"));
l.start(options);
assertTrue(l.isRunning());
Local l2 = new Local();
Expand Down
Loading