Testing

Automated testing

Run pxt checkdocs --snippets in the project’s root directory. This will automatically check both the validity of referring links in your docs and that all code snippets in your documentation can be compiled. It checks to see that no typescript features that can’t be represented as blocks are used in any block snippets.

If you use additional dependencies, make sure you reference them (see Anchors).

To exclude a snippet from being checked, add -ignore after the snippet type (see Macros).

Tutorial testing

The gulp testtutorials command will parse and run the tutorial test cases, and validate against the baselines. Baselines will be automatically generated and stored in the cases folder, if they are not present.

gulp testtutorials