The testbot is not working, we need to fix it.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 2833282--fix-testbot--16.patch | 887 bytes | e0ipso |
| #5 | fix_the_testbot-2833282-5.patch | 630 bytes | Mixologic |
| #2 | 2833282--fix-testbot--2.patch | 2.58 KB | e0ipso |
The testbot is not working, we need to fix it.
| Comment | File | Size | Author |
|---|---|---|---|
| #16 | 2833282--fix-testbot--16.patch | 887 bytes | e0ipso |
| #5 | fix_the_testbot-2833282-5.patch | 630 bytes | Mixologic |
| #2 | 2833282--fix-testbot--2.patch | 2.58 KB | e0ipso |
Comments
Comment #2
e0ipsoFirst attempt.
Comment #3
e0ipsoComment #5
MixologicI've been working on getting the testbot codebase ready to deploy and was trying to use this module as an example of one with tests and composer dependencies.
I got as far as not being able to run the tests due to there being no test group:
https://staging-dispatcher.drupalci.org/job/default/104298/console
So this patch adds that group. It will still fail here, but will allow me to continue working.
Comment #6
MixologicComment #7
MixologicComment #9
e0ipso@Mixologic that is a base class that is used in the actual tests. It should not be annotated as part of a group since it does not contain any tests. Aren't the other 3 test classes good for these tests? Maybe I'm missing something here.
Comment #10
MixologicAll tests have to be annotated otherwise run-tests.sh --list will fail with a missing @group exception.
The testbots do not run phpunit on their own, they run run-tests.sh which runs simpletest.
I was able to get this to build, and could get the tests to pass if I only ran phpunit, however, under run-tests.sh they would not pass. This is indicative of a number of possibilities:
run-tests.sh executes the tests in parallel, if there is any leakage between the tests, they could cause each other to fail.
The testbots run with drupal in a subdirectory, so if there is any expectation that drupal is the root of the web directory that could also break the tests.
Comment #11
e0ipsoMy point is that there are no tests in that class that need to be executed. It's just a regular class inside of the tests directory. Does that need a group annotation as well?
Comment #12
MixologicIn order to run this on the d.o. testbots, you need to be able to run ./core/scripts/run_tests.sh --list - which finds all test classes, and looks for an @group on those classes. But basically, the only way I can get it to work is to put an @group on that. That doesnt explain why run-tests.sh then fails to run when running at phpunit on its own does not.
Comment #13
e0ipsoThis was already fixed by the DrupalCI team.
Comment #14
MixologicWe didnt fix this. What we did was fix the ability to use composer to install your dependencies. You must still put an @group annotation on your tests, and you must still figure out why your tests fail when running under run-tests.sh, and not just via phpunit.
Comment #15
e0ipsoI'm very confused.
When I said
I meant that
TokenBearerFunctionalTestBaseis not a test class, but a class other tests classes inherit from for code reuse.seems to indicate that we only need to add the
@groupto the actual test classes.Adding a
@groupto the base class, results in a CI error reporting no tests are found:Am I missing anything?
Comment #16
e0ipsoDeclaring the base class as abstract will do the trick.
Comment #18
e0ipso