stable

Clone or download

Read-only

First step to speed up tests

This is part of request #10040 REST tests do not rely anymore on constants I extracted data from global RestBase into dedicated TestBase objects (i.e init data only in tests where its used). In my first tests, this allow us to save between 2 and 3 minutes for the test suite execution. Change-Id: I14aeb35f433694217ad282fc41e35f873cb38ffd

Modified Files

Name
M plugins/agiledashboard/tests/rest/TestBase.php +0 −1 Go to diff View file
M plugins/git/tests/rest/TestBase.php +2 −0 Go to diff View file
M plugins/svn/tests/rest/TestBase.php +1 −3 Go to diff View file
M plugins/tracker/tests/rest/XML/ArtifactTest.php +18 −0 Go to diff View file
M tests/lib/autoload.php +8 −2 Go to diff View file
A tests/lib/rest/ArtifactBase.php +139 −0 Go to diff View file
A tests/lib/rest/ArtifactFileBase.php +34 −0 Go to diff View file
A tests/lib/rest/CardsBase.php +34 −0 Go to diff View file
A tests/lib/rest/MilestoneBase.php +37 −0 Go to diff View file
A tests/lib/rest/ProjectBase.php +34 −0 Go to diff View file
M tests/lib/rest/RestBase.php +18 −130 Go to diff View file
A tests/lib/rest/TrackerBase.php +34 −0 Go to diff View file
M tests/rest/ArtifactFilesTest.php +3 −2 Go to diff View file
M tests/rest/ArtifactsChangesetsTest.php +2 −1 Go to diff View file
M tests/rest/ArtifactsTest.php +3 −9 Go to diff View file
M tests/rest/CardsTest.php +4 −1 Go to diff View file
M tests/rest/MilestonesBacklogPatchTest.php +6 −2 Go to diff View file
R tests/rest/MilestoneBacklogTest.php Go to diff View file
M tests/rest/MilestonesBurndownTest.php +4 −1 Go to diff View file
M tests/rest/MilestonesCardwallTest.php +4 −1 Go to diff View file
M tests/rest/MilestonesContentTest.php +4 −1 Go to diff View file
M tests/rest/MilestonesMilestones.php +4 −1 Go to diff View file
M tests/rest/MilestonesTest.php +4 −1 Go to diff View file
M tests/rest/ProjectTest.php +4 −1 Go to diff View file
M tests/rest/TrackersTest.php +3 −1 Go to diff View file