Unit tests fail on Docker
|Target version:||Release 2.7.0|
|Google Code Legacy ID:||Tested version:||2.7|
One of the unit tests fails on the Docker environment:
PHPUnit 9.5.4 by Sebastian Bergmann and contributors. ...........................F..................................... 65 / 66 ( 98%) . 66 / 66 (100%) Time: 00:00.073, Memory: 16.00 MB There was 1 failure: 1) PhysicalObjectCsvImporterTest::testSetFilenameFileUnreadableException Failed asserting that exception of type "sfException" is thrown. FAILURES! Tests: 66, Assertions: 87, Failures: 1. Script phpunit handling the test event returned with error code 1
#1 Updated by José Raddaoui Marín 7 months ago
- Subject changed from Unit tests fail on Docker and it's not easy to get coverage reports to Unit tests fail on Docker
- Description updated (diff)
- Assignee deleted (
José Raddaoui Marín)
- Target version deleted (
The failing test is checking that a file owned and readable only by root fails to import ...
This raises a bigger issue about the atom and atom_worker containers being run by root in the Docker environment, so I'll move the coverage and PHPUnit upgrade part to a different issue (#13493) and leave this one to decide if we want to address the failing test or the containers user.