The date module has some basic tests included but it would be useful to have some more comprehensive testing of configuration. I wrote some tests that test very basic configurations of the date module basically these tests just cover every storage type/widget type combination with default settings. Next I'll be working on porting these tests to Drupal 7 to aid in upgrading the Date module (http://drupal.org/node/929494). If we can prioritize a list of common configurations to test I can work these into my tests as well.

CommentFileSizeAuthor
#1 date.test3.93 KBAnonymous (not verified)
date.test4.15 KBAnonymous (not verified)

Comments

Anonymous’s picture

StatusFileSize
new3.93 KB

Just finished porting these tests for Drupal 7. It exposes that datetime and datestamp are both broken but these tests should help fix these issues.

karens’s picture

I've commit this to the D7 version and added the beginning of additional functional tests.

For instance, the Date API has some basic date functions that can be tested, independent of the way fields and forms work. Create date objects of various types, alter their granularity, timezone, or other settings, and test that the right values get created. The Date API has its own date elements that can be tested independent of anything about the way that Fields work -- create a custom (non-Field) date form element and process it to be sure it returns the right result. The field API can be tested independently of the Field UI by creating a date field using the Field CRUD functions and then populating it with a node_save() to be sure the right value. Finally the Field UI can be tested. And the Date Repeat API can be tested. And the Date Popup element can be tested. And the date sql functions can be tested. And the Date iCal functions can be tested.

webchick’s picture

Tagging.

karens’s picture

Mis-tagged

karens’s picture

Status: Needs review » Closed (won't fix)

There are a lot of tests in D7 now, and we're starting to think about D8. I'm probably not going to worry about adding more tests to D6.