Skip to content

smart-on-fhir/bdt

Repository files navigation

bdt

BDT as Bulk Data testing app for CLI

Installation

Prerequisites: Make sure you have git and NodeJS version >= 14 installed

git clone https://github.com/smart-on-fhir/bdt
cd bdt
npm i

# To register bdt as globally available executable also run this:
npm i -g .
# Otherwise you will have to run it using "node ." from the project folder

Contribution

Contributions are welcome, just make sure you check out the API Docs first.

CLI Usage

Quick start

# Here "my/config.js" is the path to your configuration file
bdt test --config my/config.js

Commands

The bdt tool contains 3 subcommands:

  • test - Runs the test suite
  • list - List available tests (useful for third-party integration)
  • audit - Generates audit reports

The usage is

bdt [options] [command]
# or
bdt [command] [options]

For more information run one of:

  • bdt --help - common usage
  • bdt help test - test command usage
  • bdt help list - list command usage
  • bdt help audit - audit command usage

Examples

Tests a server

bdt test -c config-examples/reference-server-r4.js

Tests a server but only run authorization-related tests

bdt test -c config-examples/reference-server-r4.js -P authorization.test.js

Tests a server against Bulk Data v1

bdt test -c config-examples/reference-server-r4.js --api-version 1

About

Bulk Data Test Suite and Test Runner

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published