-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Incorrent xml output if I use the dataProvider in tests #185
Incorrent xml output if I use the dataProvider in tests #185
Conversation
Thanks for the patch. |
I think i will if I will not forget to do it :) |
- add testExtendEmptyCasesFromSuites - add $nestedSuite to extendEmptyCasesFromSuites
Pls review I did small test for this. |
Thx. As the fix is referencing #19 which is pretty old, I would merge this PR. But if you have some time left @drefixs there are some issues that could be fixed before the branch is merged:
$class = ".";
$file = "."; So there is a test missing that checks if the values of $class and $file make sense. Feel free to fix these issues. ;) It could be merged without further work, but #19 would be left open. |
Thx, for review @julianseeger
Thanks. |
- made extendEmptyCasesFromSuites simple
I decided to do logic more simple because it's bad idea to try get something from nested testsuite it doesn't aggregate any data from junit.xml log. I think to fix this problem directly there is 2-way. Wait for PHPUnit fix they JUnit log According to JUnit.xsd or rewrite paratest Reader and Writer According to JUnit.xsd and add some adapter to Reader for invalid PHPUnit JUnit logs.
|
Looks good. I'll check this tomorrow. |
Alright, thx for your additional fixes. (2) is fine now and with point (1) you are probably right. There is no hint anywhere that nested testcases are a valid occurence, not even in the phpunit docs as some kind of special case so I would also consider that a bug in phpunit. No point in adding buggy behavior just for compliance. |
Incorrent xml output if I use the dataProvider in tests
Incorrent xml output if I use the dataProvider in tests #19