-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test is marked as green, when there is some php error #286
Comments
need more information, run |
/srv/app # php vendor/bin/phpunit --teamcity Runtime: PHP 8.3.15 ##teamcity[testCount count='40' flowId='5161'] There was 1 error:
/srv/app/tests/Ecommerce/Offer/Synchronizer/PriceSynchronizerTest.php:28 ERRORS! |
it's wired, test falied teamcity should have there lines [testStarted name='test case name' locationHint="php_qn://file:test_case_name"] but your teamcity log only has testFailed. so this extension can't find the error location. if you can create a repository and upload to github. I can get more information for this issue |
Hello, during creating clean repo to reproduce for you i found some hint - when i have test and it passed ok (green icon), but after that when test have syntax error and i will run it again - test still have green icon. When i clean all result and run test again - test with syntax error will have only grey circle (no green or red icon). Maybe i will help to check the problem. If not - i can publish some clean symfony repo with one test. |
P.S. when test have syntax error and is marked with grey circle then on top in tree it will not indicate any problems |
When in test is some error, phpunit will output:
Time: 00:00.102, Memory: 10.00 MB
Tests: 1, Assertions: 0, Errors: 1.
PHPUnit Test Explorer will mark as green in that case, should mark as not passed.
The text was updated successfully, but these errors were encountered: