This project is read-only.

Additional arbitrary fields possible?

Sep 24, 2014 at 9:15 AM
Hello,

is it possible to add arbitrary fields to tests and its result (like additional information "details") or are the resulting fields bound to NUnit's output?

Best regards
Sep 25, 2014 at 6:58 AM
Edited Sep 26, 2014 at 10:06 PM
Could you detail your idea and put a sample? I'm not sure to understand your idea.
Sep 25, 2014 at 2:35 PM
Sure!
Imagine you have test cases with description, system and assert query. Now, you would like to add a field to the test cases for further information e.g. a query for more detailed data if the test fails. Is it possible to find this field as a custom field in the result file as well? I would guess, that NUnits output fields for the xml-result file are clearly defined and not customizable. However, do you know if this is true?
Thanks!

Seddryck wrote:
Could you detail your idea and put a sample? I'm not sure to understand your idea.
Sep 25, 2014 at 2:54 PM
Edited Sep 26, 2014 at 10:07 PM
If the test is failing I guess that you’ve the stack trace in the xml output. If yes, I could add new fields such as “tip” inside the test and just let them in the stack trace.
Sep 26, 2014 at 9:15 AM
Yes, this sounds like an option! I have this requirement in one project, however, do you think, this would be help across all NBi projects?
Sep 26, 2014 at 10:08 PM
I see it useful in some cases
Oct 30, 2014 at 12:12 AM
Edited Oct 30, 2014 at 12:12 AM
I've implemented this, as the "trait" element. It's available in a commit-build and documented there.
Marked as answer by Seddryck on 12/23/2014 at 5:21 AM
Oct 30, 2014 at 7:24 AM
Thanks a lot! You are very quick implementing new ideas! This feature will help. :)