bids-validator icon indicating copy to clipboard operation
bids-validator copied to clipboard

CLI add test-suite

Open sappelhoff opened this issue 4 years ago • 1 comments

The CLI is currently not exhaustively tested, or at least I couldn't find it. (If it is tested, can somebody please point me to the tests?)

As far as I can see, the only tests that we have are made in the wild, for example in the bids-examples repo: https://github.com/bids-standard/bids-examples/blob/047b14a11b9f57e1e2df41bf5f9ebd2b0d35a358/.github/workflows/validate_datasets.yml#L72-L102

But that's not enough, we should add tests for all kinds of calls to bids-validator in the CI of this repo.

sappelhoff avatar Feb 05 '21 17:02 sappelhoff

The existing CLI tests are in bids-validator/tests/cli.spec.js but most of the options are not tested (just with and without --json).

nellh avatar Feb 05 '21 17:02 nellh