Closed pennyarcade closed 8 years ago
I also have this issue. Example build: https://app.shippable.com/builds/5581b0dd3d07800f0005ad74
Bump. I'm encountering this issue as well. I used the example given in the docs. Command I'm running:
phpunit --log-junit shippable/testresults/junit.xml --coverage-xml shippable/codecoverage
This should be fixed with our recent build platform upgrade. Please let us know if you still run into this after your account is upgraded.
I'm still not seeing the tests results. Example build: https://app.shippable.com/runs/57071d133fa7e60d005fe887
@ric03uec we need to look at this asap.
Any ETA on this issue?
@jdextraze i see the following logs for the build link you posted above
this means that there are no files in shippable/testresults
and shippable/codecoverage
folders because of which the report parser is returning null results for each. We have tested junit test parsing to be working correctly so this seems to be the most probable issue.
Can you please verify that the folders have valid xml files.
Thanks, got it to work
@jdextraze thanks for confirming it works. Closing this issue.
Hello Team,
I followed the documentation very closely to set up phpunit tests (among others) with shippable using the '--log-junit' option and the '--coverage.xml' option. I am using the standard image for now. My coverage results are displayed correctly and the phpunit output looks ok, too. (Failing as expected) Sadly I can't seem to get the phpunit results displayed in the testresults tab. I tried different filenames and triplechecked output directory and format. Please help.
Also my composer update fails when I turn caching on. It gets a permission denied on the cache directory. File permissions are OK, there might be an Issue of files already being open that I can't reproduce locally. I am trying to test a small Symfony application. The intendet result should be saving build time by caching but keeping dependencies up to date. Update: This only happens for the buildin global composer. I have no errors when using my own composer.phar in the project directory.
Third and least important, I'd like to also display my code sniffer results of PHPMD and PHPCS in the testresults tab. The output is set to xml, too.
Here is an example build with the above problems : https://app.shippable.com/builds/55812bf06cde2e0c0077a5b7 (Build 43)
Here is my shippable.yml for reference:
Thank you very much for your help.
Martin