Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
19 Mar 2009 at 15:35 UTC
Updated:
24 Apr 2018 at 13:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
damien tournoud commented;)
Why not?
Comment #2
Anonymous (not verified) commentedA patch with a basic/initial implementation.
Comment #3
Anonymous (not verified) commentedAPI documentation that goes with the patch.
Comment #4
boombatower commentedNice examples :)
Please include the API doc in the patch, so that everything is testing by the bot and all in a single patch file.
Comment #5
Anonymous (not verified) commentedComment #6
Anonymous (not verified) commentedI'm marking this as "needs review" because I think that's what I'm supposed to do...
Comment #7
dries commentedThis looks OK to me, but I wonder if our terminology is right. Do we consistently call testruns testruns and tests tests? (A test run seems to be a test group.)
Where and how does one obtain a Lava lamp that integrates with the test framework? :-)
Comment #8
boombatower commentedWell we run tests by test case (class), which may contain several testMethods(), but all under the same title. We usually consider a test case a single test. If that holds then I think the terminology is fine.
As for the testrun...I usually refer to that as a test suite, but I am usually talking about the whole suite being run (t.d.o). I think testsuite sounds nice and is more clear then testrun. Still not sure it is the answer.
Comment #9
Anonymous (not verified) commentedI used the term "testrun" because the page admin/build/testing mentions the word "run" three times. The words "suite" and "group" do not occur on that page. In fact, both these terms might be confused with "all tests of a specific module".
Similarly, the UI contains the words "test" multiple times in the descriptions of tests/test cases. The term "test case" is nowhere to be found.
PS: To keep this issue on-topic, I'll create a blog post with some ideas how to use these new hooks, fun stuff that some agile teams have done and links to online stores where you can buy the necessary gadgets.
Comment #10
boombatower commentedThe UI has almost no text whatsoever and uses the work run as a verb. "Select the tests you would like to run, and click Run tests.
I agree that "suite" makes you think of all the tests (as I stated)...so I'm not sure.
testrun just seems awkward, but at lack of something better...
Comment #12
berdirNice, http://drupal.org/project/code_coverage could for example use those.
Comment #13
Anonymous (not verified) commentedWhy does the patch fail testing with "Failed: Failed to install HEAD."? The patch hasn't changed and I can still use it locally on an up-to-date HEAD.
I'm guessing (hoping?) it was a temporary glitch in the Matrix and I'm marking this issue again as "needs review" to trigger another attempt.
Comment #14
Anonymous (not verified) commentedIn the meantime I have also committed a new contrib module that uses these new hooks to execute shell commands: http://drupal.org/project/testlistener
I use it together with the dellledctl utility to turn on/off the built-in LEDs of my laptop.
Comment #15
berdirThe test bot had to be changed, all tests failed with that message for a short time. Try to re-upload the patch.
Comment #16
boombatower commentedDue to a change in the core installer which requires a change to the bot since Drupal has no install script in core.
Comment #17
Anonymous (not verified) commentedComment #18
dries commentedIf we run a group of tests in between the hooks, I recommend that we rename the hook to 'test_group_start' and 'test_group_end'.
Comment #19
dries commentedComment #20
Anonymous (not verified) commentedI've recreated the patch with "test group".
Comment #21
Anonymous (not verified) commentedThere seems to be some dust settling on this issue.
Is there anything I can do to move this patch forward?
Comment #22
dries commentedCommitted to CVS HEAD. Feel free to ship me a Java-lamp. ;-)
Comment #23
yched commented[J|L]ava lamp ? ;-)