0
我用PHPUnit和laravel創建了一些測試。測試在本地運行成功,但作爲gitlab ci作業存在錯誤。我如何調試失敗的ci構建?
這裏是CI日誌:
There was 1 failure:
1) Tests\Feature\AuthTest::testAuthLoggedInIsAdmin
Expected status code 200 but received 500.
Failed asserting that false is true.
/builds/XXX/webproject/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:55
/builds/XX/webproject/tests/Feature/AuthTest.php:53
爲了更好的調試和找到解決辦法,我需要從項目中錯誤跟蹤或error.log
從網絡服務器。
在ci中調試錯誤的最佳做法是什麼?