Skip to content

Commit

Permalink
Passed the browser list sys prop through to the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mcasperson committed Aug 20, 2016
1 parent d4e3505 commit be53fac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ deploy:
region: us-east-1
on:
tags: true
after_failure: "cat build/reports/tests/index.html; find . -type f -name 'CucumberThread*.txt' -exec cat {} +;"
3 changes: 2 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,8 @@ def passThroughProperties = [
"externalProxyRealm",
"newBrowserPerScenario",
"failAllAfterFirstScenarioError",
"phantomJSUserAgent"
"phantomJSUserAgent",
"testBrowsers"
]

test {
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/au/com/agic/apptesting/LiveTests.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class LiveTests {
@Before
public void getBrowserList() {
final String browsersSysProp = SYSTEM_PROPERTY_UTILS.getPropertyEmptyAsNull(TEST_BROWSERS_SYSTEM_PROPERTY);
if (StringUtils.isEmpty(browsersSysProp)) {
if (StringUtils.isBlank(browsersSysProp)) {
browsers.add("Marionette");
browsers.add("Chrome");
browsers.add("PhantomJS");
Expand Down

0 comments on commit be53fac

Please sign in to comment.