Join GitHub today
XUnit report shows only autogenerated names for the contexts #674
Using the same example package as in #672
This is plain console output is fine, screenshot:
But this is how it looks like in Jenkins:
I'm not sure if it is a reporter issue or a Jenkins issue (our Jenkins is kinda old - 2.58)
There is also another issue with the auto-generated context names. If you include a test case in the named context then it becomes practically impossible to run a single test case via runner.
I think in a big package it can be hard to correctly associate a specific test case with a context number to which it belongs.
referenced this issue
May 24, 2018
In current implementation (3.1.0-3.1.1) there is no place to set the name of a context - we can only set description.
Perhaps we should change that and add validation of context names (no spaces)?
package name_of_the_suite is --%suite(Description of the suite) --%beforeall procedure setup; --%context(context_name) --%description(Context Description) --%test(description of the test) procedure name_of_the_test; --%endcontext end; /
Alternatively we could still consider the attribute of
This also limits the flexibility and prevents from having separate name from description.
@jgebal hi Jacek.
But of course it does not help the calling problem (#679).
Speaking of you ideas above, i personally like the first one more.
--%context(context_name) - analogue to the package name / suit name, if not provided then generated like now "context_1" etc.
--%test - defines procedure as a test case (name = procedure name)