Skip to content

Commit

Permalink
Add CircleCI job for examples (#897)
Browse files Browse the repository at this point in the history
Also fixes failing SeleniumContainerTest in examples.
  • Loading branch information
kiview authored Oct 4, 2018
1 parent 08ba43f commit d402295
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,21 @@ jobs:
path: ~/junit
- store_artifacts:
path: ~/junit
examples:
steps:
- checkout
- run:
command: mvn -B -f examples/pom.xml test
- run:
name: Save test results
command: |
mkdir -p ~/junit/
find examples -type f -regex ".*/target/surefire-reports/.*xml" -exec cp {} ~/junit/ \;
when: always
- store_test_results:
path: ~/junit
- store_artifacts:
path: ~/junit

workflows:
version: 2
Expand All @@ -92,3 +107,4 @@ workflows:
- modules-no-jdbc-test-no-selenium
- modules-jdbc-test
- selenium
- examples
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void simplePlainSeleniumTest() {
searchInput.sendKeys("Rick Astley");
searchInput.submit();

WebElement otherPage = driver.findElementByLinkText("Rickrolling");
WebElement otherPage = driver.findElementByPartialLinkText("Rickrolling");
otherPage.click();

boolean expectedTextFound = driver.findElementsByCssSelector("p")
Expand Down

0 comments on commit d402295

Please sign in to comment.