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

--formatter not recognized format #274

Description

@ikhader

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions