File tree Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Expand file tree Collapse file tree 5 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 1
1
language : bash
2
2
before_install :
3
3
- ./script/install-bats.sh
4
- - git clone --depth 1 https://github.com/ztombol/bats-core ../bats-core
4
+ - git clone --depth 1 https://github.com/ztombol/bats-support ../bats-support
5
5
before_script :
6
6
- export PATH="${HOME}/.local/bin:${PATH}"
7
7
script :
Original file line number Diff line number Diff line change 8
8
9
9
Assertions are functions that perform a test and output relevant
10
10
information on failure to help debugging. They return 1 on failure and 0
11
- otherwise. Output, [ formatted] [ bats-core -output ] for readability, is
11
+ otherwise. Output, [ formatted] [ bats-support -output ] for readability, is
12
12
sent to the standard error to make assertions usable outside of ` @test `
13
13
blocks too.
14
14
15
15
Assertions testing exit code and output operate on the results of the
16
16
most recent invocation of ` run ` .
17
17
18
18
Dependencies:
19
- - [ ` bats-core ` ] [ bats-core ] - output formatting
19
+ - [ ` bats-support ` ] [ bats-support ] (formerly ` bats-core ` ) - output
20
+ formatting
20
21
21
22
See the [ shared documentation] [ bats-docs ] to learn how to install and
22
23
load this library.
@@ -676,7 +677,7 @@ refute_line -- '--'
676
677
<!-- REFERENCES -->
677
678
678
679
[ bats ] : https://github.com/sstephenson/bats
679
- [ bats-core -output ] : https://github.com/ztombol/bats-core #output-formatting
680
- [ bats-core ] : https://github.com/ztombol/bats-core
680
+ [ bats-support -output ] : https://github.com/ztombol/bats-support #output-formatting
681
+ [ bats-support ] : https://github.com/ztombol/bats-support
681
682
[ bats-docs ] : https://github.com/ztombol/bats-docs
682
683
[ bash-comp-cmd ] : https://www.gnu.org/software/bash/manual/bash.html#Compound-Commands
Original file line number Diff line number Diff line change 3
3
"version" : " 0.1.0" ,
4
4
"private" : true ,
5
5
"peerDependencies" : {
6
- "bats-core " : " git+https://github.com/ztombol/bats-core .git#v0.1.0"
6
+ "bats-support " : " git+https://github.com/ztombol/bats-support .git#v0.1.0"
7
7
}
8
8
}
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ load test_helper
9
9
}
10
10
11
11
@test ' fail(): reads <message> from STDIN' {
12
- run bash -c " source '${TEST_DEPS_DIR} /bats-core /load.bash'
12
+ run bash -c " source '${TEST_DEPS_DIR} /bats-support /load.bash'
13
13
source '${TEST_MAIN_DIR} /load.bash'
14
14
echo 'message' | fail"
15
15
[ " $status " -eq 1 ]
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ setup() {
3
3
export TEST_DEPS_DIR=" ${TEST_DEPS_DIR-${TEST_MAIN_DIR} / ..} "
4
4
5
5
# Load dependencies.
6
- load " ${TEST_DEPS_DIR} /bats-core /load.bash"
6
+ load " ${TEST_DEPS_DIR} /bats-support /load.bash"
7
7
8
8
# Load library.
9
9
load ' ../load'
You can’t perform that action at this time.
0 commit comments