stable

Clone or download

Read-only

Introduce DB tests with phpunit

Current DB integration tests rely on TuleapDbTestCase that is SimpleTest based. The integration is crappy (auto init of the DB, etc) and SimpleTest is, well, no longer maintained. It's time to move on! This is the first contribution that setup the whole stuff and migrate some tests. ProjectImportTest was trashed because the test was actually broken since ages (it was expecting an Exception but the exception was raised for another purpose than the one the would have corresponded to the test and there is obvious way to find by what it should be replaced). request #13919 Convert simpletest db integration tests to phpunit Change-Id: I8f12e134affc57b6c8e39de31807d5502278059f

Modified Files

Name
M .gitignore +1 −1 Go to diff View file
M Makefile +8 −8 Go to diff View file
M tests/Jenkinsfile +8 −0 Go to diff View file
M tests/actions.groovy +7 −0 Go to diff View file
D tests/integration/ProjectImportTest.php +0 −211 Go to diff View file
D tests/integration/_fixtures/fake_project_with_missing_natures/project.xml +0 −13 Go to diff View file
A tests/integration/bin/run.sh +33 −0 Go to diff View file
A tests/integration/bin/setup.sh +87 −0 Go to diff View file
A tests/integration/bootstrap.php +26 −0 Go to diff View file
A tests/integration/phpunit.xml +37 −0 Go to diff View file
A tests/integration/tests/.simpletest_skip +0 −0 Go to diff View file
R tests/integration/ProjectCreationTest.php Go to diff View file
A tests/integration/tests/TrackersV3ToV5/DefectTrackerTest.php +370 −0 Go to diff View file
A tests/integration/tests/TrackersV3ToV5/TaskTrackerTest.php +486 −0 Go to diff View file
D tests/integration/tracker_v3_to_v5/MigrateTrackerTest.php +0 −796 Go to diff View file
M tests/rest/bin/setup.sh +2 −2 Go to diff View file
M tests/rest/etc/mysql-server.cnf +8 −8 Go to diff View file