项目作者: perlpunk

项目描述 :
Run yaml/yaml-test-suite tests and create HTML matrix
高级语言: Perl
项目地址: git://github.com/perlpunk/yaml-test-matrix.git
创建时间: 2017-02-17T19:57:03Z
项目社区:https://github.com/perlpunk/yaml-test-matrix

开源协议:MIT License

下载


YAML Test Matrix

This matrix makes use of the YAML Test Suite
and the YAML Runtimes.

Its output is currently saved in the
gh-pages branch
of yaml-test-suite.

You can find the current version on: matrix.yaml.info.
During development I’m using
perlpunk.github.io/yaml-test-matrix.

It shows which processors pass which test cases:

Test ID Lib1 Events Lib2 Events Lib3 JSON
229Q ok error ok diff
236B diff ok error ok
26DV diff ok n/a n/a

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

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.

Matrix

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.

Adding a library

If you want to see a new library in the matrix, it has to be added to YAML
Runtimes.
Please create an issue or pull
request
there.