I went to run the SimpleTest automated tests on FeedAPI 1.4 (specifically for FeedAPI Node) and they do not appear, so cannot be run. Makes it impossible to aid in debugging this issue:
http://drupal.org/node/260670#comment-969353
Other people mentioning this:
http://drupal.org/node/260670#comment-970296
http://drupal.org/node/260670#comment-983806
Looks like a bug! Drupal 6.6 and SimpleTest 6.x-2.5. Other modules provide tests without issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | 326637_feedapi_node.module.test.simpletest2x.patch | 7.81 KB | aron novak |
| #6 | feedapi_node.module.test.simpletest2x.patch | 1.25 KB | lyricnz |
| #5 | feedapi_node.module.test.simpletest2x.patch | 1.3 KB | lyricnz |
Comments
Comment #1
Arto commentedSimpleTest 2.x broke compatibility with many older unit tests, hence why this is not showing up. Somebody needs to refactor the tests and submit a patch.
Comment #2
Arto commented(In other words, if you downgrade to SimpleTest 6.x-1.x, the FeedAPI node unit tests should show up just fine.)
Comment #3
Arto commentedComment #4
greg.harveyThanks - I don't think I'll have time to write the patch, I'm afraid... too much on at the moment. But I'll use SimpleTest 1.x to test the above issue. =)
Comment #5
lyricnz commentedHere's a patch for feedapi_node.module.test that updates for SimpleTest 6.x-2.x. Right now it delivers
110 passes, 0 fails, and 2 exceptions
Those two exceptions are caused by #449198: SimpleTest: Clean up test loading and related API which is waiting for a backport from D7.
Comment #6
lyricnz commentedUpdate patch to remove legacy get_info()
Comment #7
aron novakI received this:
I tested with SimpleTest 6.x-2.8 and 6.x-2.x-dev also.
Any guess what's going on?
Comment #8
aron novakI renamed the class to FeedAPITestsCase and other, more serious errors appeared (now the processing of the test starts)
Comment #9
aron novaklyricnz, can you confirm that the patch below works sane at your test site as well?
There are some ugly exceptions, but overall, all the tests should pass.
Comment #10
lyricnz commentedReply to #7; That warning is the one I refer to above : fixed in HEAD waiting for a backport to D6 simpletest. I don't know why it didn't find your tests, my "110 passes, 0 fails, and 2 exceptions" was cut'n'paste from the testing output.
Comment #11
lyricnz commentedReply to #9: 339 passes, 0 fails, and 0 exceptions
(simpletest 6.x-2.8)
Comment #12
aron novaklyricnz: thank you for the test, i committed the patch.