Add test cases

wulff - May 20, 2009 - 15:09
Project:Nodequeue
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:wulff
Status:needs review
Issue tags:Simpletest
Description

To make sure my patch from #234004: Drag and drop node ordering doesn't break anything, it seems like a good idea to add test cases to the module.

(I'm aware of the old D5 cases in http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/nodequeue/t...)

First set of tests attached.

AttachmentSize
nodequeue.test12.54 KB

#1

ezra-g - May 20, 2009 - 16:55
Status:active» needs review

Thanks!
Marking as needs review.

#2

wulff - May 22, 2009 - 11:23

Adding tests for users with the 'administer nodequeue' permissions.

Next on the list: Tests for the API functions.

AttachmentSize
nodequeue.test 16.82 KB

#3

wulff - May 27, 2009 - 13:11

Added some more test cases.

AttachmentSize
nodequeue.test 28.9 KB

#4

wulff - May 29, 2009 - 10:06

Added some more test cases. Current coverage is 70%.

AttachmentSize
nodequeue.test 36.43 KB
nodequeue_coverage.pdf 234.15 KB

#5

ezra-g - June 3, 2009 - 04:58

Please accept my delayed and large thanks.

When I ran these tests, almost all pass with only a few exceptions, and then I encounter a 500 error. I need to fix my testing environment so I can finish making sure that the tests pass and then this will be committed.

#6

wulff - June 5, 2009 - 17:27

Finally hit 90% coverage. This set of test cases will result in a few fails until we fix a few minor issues.

AttachmentSize
nodequeue.test 49.02 KB
nodequeue_coverage.pdf 212.75 KB
 
 

Drupal is a registered trademark of Dries Buytaert.