mirror of
https://github.com/jcwimer/docker-swarm-autoscaler
synced 2026-05-16 01:57:46 +00:00
First release with tests
This commit is contained in:
14
tests/README.md
Normal file
14
tests/README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# docker-swarm-autoscaler unit tests
|
||||
|
||||
### Dependencies (packaged into docker with ./run-tests.sh)
|
||||
#### [uses rspec-shell-expectations](https://github.com/matthijsgroen/rspec-shell-expectations)
|
||||
------
|
||||
1. Ruby 2.6.3
|
||||
2. jq needs installed
|
||||
|
||||
### Gotchas
|
||||
------
|
||||
1. Do not use ${0} in scripts. Instead use ${BASH_SOURCE[0]}
|
||||
2. Many times it is necessary to see the stdout and stderr in your test to see what you forgot to mock. For example, if your test is failing
|
||||
you can do `expect(stdout).to eq ''` and rspec will fail and give you the stdout message. Same with stderr. This will help you mock the things
|
||||
you might have overlooked.
|
||||
Reference in New Issue
Block a user