Skip to content

Commit

Permalink
Merge pull request #169 from marco-m/circleci-xunit
Browse files Browse the repository at this point in the history
Collect test run information on CircleCI
  • Loading branch information
igrishaev authored Aug 10, 2018
2 parents 57ea0b0 + 7ab9669 commit 8a3b274
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,29 @@ jobs:
# and everything but firefox to allow to compare them (and see that
# the firefox tests report "ran 0 tests" due to the fixture bug)

- run: lein test etaoin.xpath-test
- run: lein test2junit etaoin.xpath-test

- run:
name: lein test etaoin.api-test (firefox)
name: lein test2junit etaoin.api-test (firefox)
when: always
environment:
ETAOIN_TEST_DRIVERS: "[:firefox]"
command: lein test etaoin.api-test
command: lein test2junit etaoin.api-test

- run:
name: lein test etaoin.api-test (all but firefox)
name: lein test2junit etaoin.api-test (all but firefox)
when: always
environment:
ETAOIN_TEST_DRIVERS: "[:chrome :phantom]"
command: lein test etaoin.api-test
command: lein test2junit etaoin.api-test

- run:
when: always
command: lein test etaoin.api-test2
command: lein test2junit etaoin.api-test2

- store_test_results:
path: target/test2junit


# TODO
#
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ node_modules
package-lock.json
TAGS
*.iml
build.xml
5 changes: 5 additions & 0 deletions project.clj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@
[org.clojure/tools.logging "0.3.1"]
[org.clojure/data.codec "0.1.0"]]

; When running the tests as `lein test2junit`, emit XUNIT test reports to enable CircleCI
; to collect statistics over time
:plugins [[test2junit "1.1.2"]]
:test2junit-output-dir "target/test2junit"

:autodoc {:name "Etaoin"
:page-title "Etaoin API Documentation"
:description "Pure Clojure Webdriver protocol implementation."
Expand Down

0 comments on commit 8a3b274

Please sign in to comment.