Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

--formatter not recognized format #274

Open
ikhader opened this issue Jun 4, 2020 · 0 comments
Open

--formatter not recognized format #274

ikhader opened this issue Jun 4, 2020 · 0 comments

Comments

@ikhader
Copy link

ikhader commented Jun 4, 2020

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

yarikoptic pushed a commit to neurodebian/bats that referenced this issue Dec 17, 2020
Update Docker infrastructure for bats
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant