-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.0 - Pluggable Result Parsing #47
Comments
Parsing of the results should provide some options to the users for extracting specific relevant results to determine the final result for the whole run. Workable methods of extracting include (both of which allows for lists of these):
Types of results can include:
Value-based tests:
Tests for partial success:
The types of successes should be plugins as well as the types of parsing methods. |
I think we should keep the pass/fail results simple.
|
We can make that a 'basic' plugin for the results parsing and then allow for other plugins that do more. |
We can have result parsers that grab and put all kinds of data into the result dictionary, but the result value itself should be simple; one of a few fields that let you glom the results of all tests together in a logical way in Splunk. Pass/Fail/Error are about as complicated as you can get without forcing the user to dig into test configs to see what a result actually means. While a Success and Fail are inherently arbitrary too, a "Partial Success" really begs the question of what that actually means for a given test. Instead, I'd just say 'Success', and then include a separate field that shows the sub-test pass fail rate or distance from expected values for that particular test. |
After a test runs to completion, the stdout of that test should be written to a
<results_dir>/run.out
file. Pav should provide a series of plugins that can be selected and configured to parse those results. This ticket covers the creation of a result parser plugin system using yapsy. Child tickets should cover the creation of parser plugins for common situations. Like scheduler plugins, these will add a unique configuration section to test configs. Unlike schedulers, only one of these sections should be allowed in a test config.The results of parsing should be a JSON mapping. The structure of the keys under this mapping is up to the individual parser plugin, but the following keys are reserved:
The text was updated successfully, but these errors were encountered: