Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
This is the result of a test:
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" tests="7" assertions="50" failures="1" errors="0" time="75.154110">
<testcase name="testPrimaryKeyHandling" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="31" assertions="5" time="2.041820"/>
<testcase name="testPrimaryKeyAlter" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="73" assertions="1" time="58.366801"/>
<testcase name="testUnsignedField" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="97" assertions="9" time="9.282572"/>
<testcase name="testAddChangeWithIndex" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="207" assertions="4" time="1.903605"/>
<testcase name="Warning" assertions="0" time="0.011641">
<failure type="PHPUnit_Framework_AssertionFailedError">Warning
Test method "testAddChangeWithBinarySearchHelper" in test class "Drupal\sqlsrv\Tests\SqlServerSchemaTest" is not public.
</failure>
</testcase>
<testcase name="testAddChangeWithBinary" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="275" assertions="29" time="1.983175"/>
<testcase name="testNumericFieldPrecision" class="Drupal\sqlsrv\Tests\SqlServerSchemaTest" file="D:\d8\modules\sqlsrv\src\Tests\SqlServerSchemaTest.php" line="350" assertions="2" time="1.564496"/>
</testsuite>
</testsuites>
And this is what the ouput in the UI:
Simpletest UI is clearly missing out some important details regarding the PHPUnit warning.
It would also be more than interesting to be able to download the PHPUnit xml result file directly from the UI.
Comment | File | Size | Author |
---|---|---|---|
#12 | interdiff.txt | 1.06 KB | Mile23 |
#12 | 2608532_12.patch | 1.79 KB | Mile23 |
#10 | 2608532_10.patch | 2.62 KB | Mile23 |
#8 | 2608532_7.patch | 2.56 KB | Mile23 |
img.jpg | 339.96 KB | david_garcia |
Comments
Comment #2
david_garcia CreditAttribution: david_garcia commentedComment #3
dawehnerIMHO we should do #2566767: Don't allow running phpunit-based tests via the UI
Comment #4
david_garcia CreditAttribution: david_garcia commentedComment #5
Mile23This is completely fixable.
Whether it's worth it to fix to anyone is another story.
A lot of core devs are using CLI tools to run tests, but we don't necessarily want that to normalize everything for everyone else.
Comment #6
Mile23First step: #2641632: Refactor simpletest's *_phpunit_*() (and junit) functions etc. to a class, deprecate
Comment #7
Mile23Discovered while assessing: #2661542: Isolate Drupal\Tests\Component\Plugin\DefaultFactoryTest from core test module
Comment #8
Mile23So basically if you generate an error, the test ID is forced to be 1.
This means that no test results end up in the query when it comes time to show you the error.
There are also sort of two 'modes': Running one unit test and running more than one unit test. If you run more than one test, you might see #2661542: Isolate Drupal\Tests\Component\Plugin\DefaultFactoryTest from core test module
Comment #10
Mile23Reroll.
Comment #11
dawehnerNice patch!
Nice! I'm wondering though whether this change is needed to fix this issue.
Comment #12
Mile23Yah, not so necessary.
Removed.
There still needs to be some follow-up on the simpletest ui form, because wow is it ever messed up. But we'll need the work here to be committed before starting on that.
Comment #15
Mile23Unrelated migration test fail. I wonder when someone will finally fix that. :-)
Re-running test.
Comment #17
Mile23Comment #18
Mile23This might be closed as duplicate of #2575725: Run PHPunit tests one at a time via UI to avoid exception when selecting too many
Comment #26
quietone CreditAttribution: quietone as a volunteer commentedTriaging issues in simpletest.module as part of the Bug Smash Initiative to determine if they should be in the Simpletest Project or core.
This looks like it belongs in the Simpletest project.