Page MenuHomePhorge

Copenhagen unit tests require configuration + runtime
Closed, ResolvedPublic

Description

Some unit tests in test suite "Unit" seem to require minimal infrastructure such as a valid configuration file, and possibly also a database, which renders these tests functional rather than unit tests;

ERROR: Configuration error. Unsupported database driver:

Details

Ticket Type
Task

Event Timeline

vanmeeuwen raised the priority of this task from to 60.
vanmeeuwen updated the task description. (Show Details)
vanmeeuwen added a project: Copenhagen.
vanmeeuwen changed Ticket Type from Task to Task.
vanmeeuwen subscribed.

More complete output:

PHPUnit 4.6.10 by Sebastian Bergmann and contributors.

Configuration read from /srv/copenhagen.git/tests/phpunit.xml


Starting test 'KolabApiOutputJson::test_object_to_array'.
I
Starting test 'KolabApiOutputJson::test_xml_to_array'.
I
Starting test 'KolabApiOutputJson::test_parse_array_result'.
I
Starting test 'KolabApiOutputJsonAttachment::test_element'.
ERROR: Configuration error. Unsupported database driver: FAILED unit tests.
Running ../stick.git/drydocker/copenhagen/test_unit.sh FAILED (at aa112f27d30dd6043e143b200257c67dd290dc25)

This isn't true strictly speaking, the tests do not seem to require a functional environment as such.