Problem/Motivation
#2659100: Allow run-tests.sh to run just the javascript Functional tests added testGetPhpunitTestSuite() to TestInfoParsingTest.
Only it didn't, actually, because it was added to the end of one of the mock test classes used by that test. An easy mistake to make.
This means the test method is never run, because it's not on the test class.
Proposed resolution
Move testGetPhpunitTestSuite() to the test class.
Also change the name of TestInfoParsingTest to TestDiscoveryTest, because we're not only testing info parsing.
Other minor cleanups.
Note that these changes are in the patches of #2863055: Move TestDiscovery out of simpletest module, minimize dependencies
Remaining tasks
User interface changes
API changes
Data model changes
Comment | File | Size | Author |
---|---|---|---|
#2 | 2893371_2.patch | 2.49 KB | Mile23 |
Comments
Comment #2
Mile23The patch.
Comment #3
LendudeHeh diff makes it look like we are moving
TestTestDiscovery
, looking at the applied patch made it make more sense.Running just
testGetPhpunitTestSuite
Time: 605 ms, Memory: 6.00MB
OK (11 tests, 11 assertions)
So with this patch we should add 11 tests to the total tests run
Current HEAD: 21,693 pass
With patch: 21,704 pass
So that checks out nicely.
Comment #4
Gábor HojtsyComment #7
Gábor HojtsyMakes sense, looks good. Committed.