Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing 2/3: Acceptance test framework #142

Merged
merged 24 commits into from
Oct 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
460aee9
initial acceptance test framework
mikrostew Sep 6, 2018
5af6acb
clean up `notion use` tests
mikrostew Sep 6, 2018
65c338d
basic test for `notion deactivate`
mikrostew Sep 6, 2018
a3ce934
tests for `notion current`
mikrostew Sep 7, 2018
25e65bb
run unit and integration tests in CI
mikrostew Sep 7, 2018
99fc4db
run unit tests in single thread
mikrostew Sep 7, 2018
01c8817
clean up and refactor
mikrostew Sep 7, 2018
def5ef2
refactor network mocks to be explicit, no defaults
mikrostew Sep 10, 2018
f4166a1
bash and catalog mocking doesn't work on windows
mikrostew Sep 10, 2018
5b05f90
cleanup and rustfmt
mikrostew Sep 10, 2018
e9ee846
add env vars for better sandboxing on windows
mikrostew Sep 11, 2018
b32e77a
sandbox catalog dir for windows
mikrostew Sep 11, 2018
83cc112
fix failing network mocked tests on win64
mikrostew Sep 11, 2018
9eb84cb
use hamcrest2 crate instead of our own module
mikrostew Sep 26, 2018
5cf8acc
cleanup - remove commented code and todos
mikrostew Sep 27, 2018
d699016
use better naming for macro and vars
mikrostew Sep 27, 2018
3031862
mockito PR was accepted
mikrostew Oct 4, 2018
0b1cb10
extract test_support crate and remove dead_code attributes
mikrostew Oct 9, 2018
5487232
tests/testsuite -> tests/acceptance
mikrostew Oct 9, 2018
7019911
comments, and remove files & dirs in a cleaner way
mikrostew Oct 9, 2018
9ab42fa
more comments to clarify things in the code
mikrostew Oct 9, 2018
61e9455
Merge branch 'master' into acceptance-tests
mikrostew Oct 9, 2018
b25b36b
fix appveyor.yml
mikrostew Oct 9, 2018
e2ffc23
use NOTION_SANDBOX env var for sandboxing logic in windows
mikrostew Oct 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 &&
mikrostew marked this conversation as resolved.
Show resolved Hide resolved
# 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