Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
phpunit
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2015 at 19:50 UTC
Updated:
31 Mar 2015 at 13:54 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
xanoComment #2
dawehner@xano
Just curious, is that for stuff like skipped tests or is this really for a test class without any test method?
Comment #3
xanoI cannot reproduce the failure locally, neither by running unit tests through PHPUnit directly or through run-tests.sh, so I can't really debug. The listener class is to make sure all
@coversannotations are correct, but that's something that PHPUnit has been doing itself on my local machines for years now.Comment #4
dawehner@Xaxo
Can you point to the test code which fails?
Comment #5
xanoThe Payment 8.x-2.x branch test results are the only source of information I have, unfortunately. I tried to reproduce this locally to pinpoint the exact cause of the problem, but whatever I do, It Just Works™.
Comment #6
arla commentedI had the very same problem and opened #2442125: Unclear error message for non-test class in Unit namespace As stated there, I could reproduce locally with
run-tests.sh --class 'Drupal\Tests\mymodule\Unit\ClassWithoutTests'.Comment #7
xanoI have a number of base test classes, one of which wasn't marked abstract, which means it was executed. The reason this went wrong on the testbot only is probably that that's the only situation in which the listener is used.
Comment #8
yesct commentedComment #9
yesct commentedupdating title. hopefully will help others find the answer when they have a similar problem.
Comment #10
daffie commentedLooks good to me.
I can confirm that a locally run test-class with no tests results in the error.
The problem is fixed with the patch. So it is RTBC for me.
Comment #11
alexpottTest code is not frozen in beta.
Comment could do with an update...
Comment #12
alexpottI'm wrong. Thanks @neclimdul for point out :)
Comment #13
alexpottTest code is not frozen in beta. Committed 1cff097 and pushed to 8.0.x. Thanks!