UnionOfRAD/lithium — Issue #177: Integration tests need more work
Author: ifunk
Created: 2011-10-27 02:02:23+00:00
State: open

In the current master branch I get the Fatal error: Class 'lithium\tests\integration\data\Company' not found. when running tests/integration/data/FieldsTest

I started going through the tests, fixing up the problems and got all integration tests to pass while using MySQL, but then when I switched the test database to use MongoDB some of these tests stopped passing.

I feel there is a need to allow multiple test connections configured at once, so I can run the test suite once and it will test on all connections. The test case should define which connection types to iterate over, and individual tests should be able to skip any test that is not applicable to a connection type.

There also needs to be a standard way to define schemas and sample data for relational databases, that can be referenced from any test case. At the moment there are some tests that cannot be run in isolation as it depends on tables/data imported in a separate test.

I'm happy to help out where possible.