Open svanoort opened 8 years ago
@spradeepv - this is the precursor to #43 (xUnit output), which you were eagerly anticipating I believe. It's in scope for the next release assuming I can arrive at a reasonable implementation without completely hacking up the core code (and perhaps get some volunteers to play with it).
Once it's complete, generating the xUnit output should be fairly straightforward (fingers crossed). We just register a separate set of optional callbacks and use them instead (or in addition to) the normal logging. It also lays the groundwork for parallel test/testset execution, hopefully.
CC @jeanCarloMachado and @nirsegev and @parametrization and @nitrocode - I know you all are waiting for this too and might be interested in playing with alpha versions of JUnit output once available.
Worth mentioning that this represents a huge under-the-hood change to the core logic in PyRestTest (outwardly it will look similar, inwardly it will be much more straightforward and easy to add custom handling).
Per https://github.com/svanoort/pyresttest/issues/163 this is in support of the xUnit changes
We are moving the test/benchmark execution logic into the macros themself:
Optional: Class based registry for macros, where it does not just register parse functions (prototype for v2?) - this allows for API-level use (beta for use in the other extension points, where they look to see if it's a parse function or a class input to figure out how to use them)Macro Execution Signature:
Lets you later first look for variables in self, then testConfig, then cmdlineArgs (which are a dictionary).