Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 2.73 KB

README.md

File metadata and controls

37 lines (30 loc) · 2.73 KB

BlackBox tests

As we start to integrate more and more inputs, we must test actual and real inputs from users to ensure the library behaves as expected. For now, the best way is to add them as BlackBox tests. The BlackBox tests are focused on catching syntax errors and not logical errors, although they can be manually used for this.

The documents being tested can be found under docs, which contain documents for the following input types:

Each document is tested across all output languages and output will be written to ./output folder in appropriate sub-folders, for easier access.

Running the tests

The tests can either be run by installing all dependencies locally or running it through docker.

If you want to run the BlackBox tests locally, you have to install a couple of dependencies:

By default, the BlackBox tests are not run with the regular npm run test, but can be run with npm run test:blackbox. Or run individual BlackBox tests you can run the commands npm run test:blackbox:${language} where language is one of csharp, go, java, javascript, python, php, rust, typescript, etc.

To run the BlackBox tests through Docker, run the command npm run docker:test:blackbox.