Skip to content

Commit

Permalink
Merge pull request #142 from mikrostew/acceptance-tests
Browse files Browse the repository at this point in the history
Testing 2/3: Acceptance test framework
  • Loading branch information
dherman committed Oct 12, 2018
2 parents 89f0208 + e2ffc23 commit 05b6b79
Show file tree
Hide file tree
Showing 26 changed files with 2,352 additions and 69 deletions.
6 changes: 5 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ jobs:
- stage: test
rust: stable
script: |
cargo test --all
# the unit tests for all crates (without mocking the network)
# run single-threaded because some tests change environment variables, which is not thread-safe
cargo test --package notion-core --package notion-fail --package node-archive --package notion-fail-derive --package progress-read -- --test-threads=1 &&
# the acceptance tests, using network mocks
cargo test --features mock-network
- stage: publish
# Conditional builds: https://docs.travis-ci.com/user/conditional-builds-stages-jobs/
if: (branch = master) AND (type = push)
Expand Down
Loading

0 comments on commit 05b6b79

Please sign in to comment.