Problem/Motivation
When stuff goes wrong with a PHPUnit test whilst it is being run by run-tests.sh. See https://www.drupal.org/pift-ci-job/251031 as an example.
Proposed resolution
Now more and more tests are PHPUnit based. Let's fix this.
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #7 | 2707467-2.patch | 1002 bytes | alexpott |
| #4 | 2707467-4.test-only.patch | 39.34 KB | alexpott |
| #2 | 2707467-2.patch | 1002 bytes | alexpott |
Comments
Comment #2
alexpottBefore
After
Comment #3
dawehnerDoes this end up on the testbot as well?
Comment #4
alexpottCombining with #1308152-281: Add stream wrappers to access .json files in extensions - the issue that inspired me to look at this. The test should fail and we should be able to see why.
Comment #6
alexpottYay! DrupalCI is able to report proper errors from PHPUnit too. :) See https://www.drupal.org/pift-ci-job/251173 and compare with https://www.drupal.org/pift-ci-job/251031
Comment #7
alexpottUploading #2 again since it is the patch to review and that should always be the last patch on the issue.
And I think it is bug that our test system does not report the correct errors from tests.
Comment #8
dawehnerIt is quite nice that this didn't required more changes!
Comment #9
alexpott@dawehner I totally agree - I was very pleasantly surprised.
If the xml file doesn't exist for some reason this won't cause a problem because of how it works... Here's the relevant snippet:
Comment #10
alexpottI think this should be part of 8.1.0 as it will help people debug what is going wrong if write JavascriptTestBase tests and run them using run-tests.sh.
It also is 0 risk change for the public API of Drupal 8.
Comment #11
dawehner+1 This also doesn't cause a risk, as you proved above.
Comment #12
MixologicI would love to see this get in. The number of "can you help me figure out why my test broke" requests would drop substantially.
Comment #13
tstoecklerWow, this has bugged me for sooo long. I was even afraid to look at this issue because I was sure it involved some dark magic that went way over my head... @alexpott, you really are a master!!! RTBC+++++
Comment #14
catchCommitted/pushed to both open 8.x. branches, thanks!
Comment #17
xjmComment #18
xjm