As part of an initiative at CivicActions to create and contribute more simpletest unit tests, I've just started playing with
simpletest module (CVS head) on drupal 6 (CVS head). As part of grokking it I ran all of the core tests. The result: "1366 passes, 76 fails and 24 exceptions."
Full results attached.
I'm not sure what exactly this means. There is plenty of
documentation and
articles (
another article about why simpletest is useful and how to write simpletest unit tests, but none (AFAIK) about how to run them and what to do with results.
Where does one start to help get the issues resolved?
Please excuse my ignorance and lack of knowledge on this. I've never done any unit testing before but I've read a bit about it and it was covered briefly in a
computer science paper I took in 2007.
Comments
This is not the proper place
take him at his word
Every question like this deserves investigation about what caused the question. As you pointed out, he needs to fix his image module installation and search module installation. Well, that indicates two areas where the tests could be improved (check for installation prior to running).
(I do agree, though, registration+captcha+spam filter is quite overboard)
Yeah, I think the question
I just fixed the captcha misconfiguration, so it shouldn't bug you too much now :)
As someone who is used to
As someone who is used to unit testing and within cms frameworks like zope3 and is also kinda new to Drupal but including simpletest based unit tests in my work.
I think its important that all the tests pass for core with the base install. If a module isn't enabled for a test that needs to be it should be enabled and then disabled, and if we are worried that people will get confused when the actual function doesn't work for them we can post a drupal message in the test saying 'XXX module enabled' and then 'XXX module disabled' so that the user can have some feedback.
Logically is there some reason not to do this?
Unit tests passing are one of the signs that everything setup and working correctly. Running the tests is often the first thing I will do when downloading software to get some confidence in it.
irc: cabbiepete
Pete
Give me a break
Oops