Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Generate JUnit XML Log will failed when Selenium server can’t be connected #3653
I think that with the different change about improving WebDriver in 2.2.6 we break something when we are exporting xml file.
Run test without exporting => OK it will print an error
Run test with xml export => It will fail in JUnit.php
The issue is about $this->currentTestCase that is null at the end of the test.
It was working well in 2.2.5.
@DavertMik I'm don't know JUnit.php so I will not fix it.
It is an odd issue - it happens, because
I don't think it's an old issue @Naktibalda
[Codeception 2.2.5] codecept run acceptance --xml result.xml => result.xml generated
[Codeception 2.2.6] codecept run acceptance --xml result.xml => result.xml NOT generated
The problem is that
It will be ok with this type of code
One option is to change order of the listeners (temporary solution), or pull request was created for PHPUnit which should fix the order sensitivity - sebastianbergmann/phpunit#2476