You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.
$ bats --version
Bats 1.2.0 --> latest version of bats
$ cat add.bats --> test file details @test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
} @test "addition using dc" {
result="$(echo 2 2+p | dc)"
[ "$result" -eq 4 ]
}
$ bats add.bats --> Run test case
✓ addition using bc
✓ addition using dc
2 tests, 0 failures
$ bats -c add.bats --> count number of test cases
2
$ bats --formatter junit -T add.bats --> FAILURE/ERROR JUNIT XML output
Error: Bad command line option '--formatter'
-- bats helper menu is displayed
The text was updated successfully, but these errors were encountered:
OSType:
MacOS Mojave
version: 10.14.6 (18G5033)
$ bats --version
Bats 1.2.0 --> latest version of bats
$ cat add.bats --> test file details
@test "addition using bc" {
result="$(echo 2+2 | bc)"
[ "$result" -eq 4 ]
}
@test "addition using dc" {
result="$(echo 2 2+p | dc)"
[ "$result" -eq 4 ]
}
$ bats add.bats --> Run test case
✓ addition using bc
✓ addition using dc
2 tests, 0 failures
$ bats -c add.bats --> count number of test cases
2
$ bats --formatter junit -T add.bats --> FAILURE/ERROR JUNIT XML output
Error: Bad command line option '--formatter'
-- bats helper menu is displayed
The text was updated successfully, but these errors were encountered: