FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

test: fix pre-existing unit-test failures (green the suite) by 07souravkunda · Pull Request #100 · browserstack/browserstack-local-java · GitHub

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .java  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL