LogMan.io Parser Unit test

The LogMan.io parses provides the tool for unit test execution over the library of parser and enricher declarations.

To start:

python3 test.py ./example

The tool seeks for tests in the library, loads them and then execute them in the order.

Format of unit tests

Unit test file has to be placed in test directory and the name of the file has to comply with test*.yaml template. One YAML test file can contain one or more YAML documents with a test specification.

input: |
  line 1
  line 2

# This means that everything from input will be parsed
unparsed: []

  - msg: line
    num: 1
  - msg: line
    num: 2