YAML Test Matrix
Its output is currently saved in the gh-pages branch of yaml-test-suite.
It shows which processors pass which test cases:
|Test ID||Lib1 Events||Lib2 Events||Lib3 JSON||...|
It only shows results of valid YAML files currently.
YAML Test Suite
The Test Suite is a collection of over 320 YAML test cases.
Every test case contains some of the following files:
- in.yaml: The input YAML
- test.event: Parser events in a specific format
- in.json: The corresponding JSON that matches the loaded data structure
- out.yaml, emit.yaml
- error: Marks YAML files that are invalid
yaml-runtimes consists of code to create docker images that currently have 21 different YAML libraries installed.
For each library there exist scripts to output the yaml-test-suite parsing event format, the loaded data structure in native format and in JSON.
You can also try out these library runtimes with the YAML Editor. It contains a script that will open Vim in the Docker container with some fancy mappings, so you can test YAML input for many processors at the same time.
Now the matrix takes all test cases from yaml-test-suite and runs them through the various processors in the yaml-runtimes Docker container.
It checks if the program died, or if the result matches the expected output. It does some transformations as not all libraries support all features.