我目前正在尝试在Jenkins上运行我的PHPUnit测试套件(5.7.22)。这是一个Symfony项目(2.8),当我在Ubuntu服务器(16.04)上尝试时,该项目运行良好。但是,在Jenkins中,抛出异常时不会显示堆栈跟踪:
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Execute Unit Tests)
[Pipeline] container
[Pipeline] {
[Pipeline] sh
[pipeline] Running shell script
+ docker exec pipeline_php_1 php bin/phpunit -c app/ tests/
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.
.EE.EEE.EE.EEEEEE.EEES.EEEEE.FSFSFF.F..SF.FFSFFFFEFFFS.FFFFFF.F 63 / 156 ( 40%)
FFF.FSF....FF.FFFFFSFFS.F
-------> STACK TRACE OR ADDITIONAL INFORMATION SHOULD BE PRINTED HERE??
[Pipeline] }
[Pipeline] // container
[Pipeline] echo
Unit tests failed
我非常确定这是PHP中的配置问题,因为当我尝试使用docker容器运行本地测试时,也不会显示输出。我已经尝试了几件事: