Download & Extend

SimpleTest: correct assertTitle logic

Project:Drupal core
Version:7.x-dev
Component:simpletest.module
Category:bug report
Priority:critical
Assigned:boombatower
Status:closed (fixed)

Issue Summary

The included test used to fail due to this issue. Discussed in IRC after mikey_p discovered.

Originally discover by the fact that http://drupalbin.com/4438 passed.

AttachmentSizeStatusTest resultOperations
simpletest_assertTitle.patch2.06 KBIdleFailed: 7619 passes, 2 fails, 0 exceptionsView details

Comments

#1

Title:SimpleTest correct assertTitle logic» SimpleTest: correct assertTitle logic

Added assertNoTitle for consistency and to be able to write test.

#2

Category:task» bug report
Assigned to:Anonymous» boombatower

#3

davereid caught documentation issue.

AttachmentSizeStatusTest resultOperations
simpletest_assertTitle.patch2.3 KBIdleUnable to apply patch simpletest_assertTitle_0.patchView details

#4

Category:bug report» task
Assigned to:boombatower» Anonymous

Makes complete sense to add assertNoTitle since assertTitle is one of the only assertions that doesn't include a negative. Also helpful to make sure that assertTitle works correctly like we discovered it does not. Docs need a tweak: "The string the title should NOT be."

#5

Category:task» bug report
Assigned to:Anonymous» boombatower

Too fast on trigger finger.

AttachmentSizeStatusTest resultOperations
simpletest_assertTitle.patch2.06 KBIdleUnable to apply patch simpletest_assertTitle_1.patchView details

#6

Category:bug report» task
Assigned to:boombatower» Anonymous
Status:needs review» reviewed & tested by the community

Patch applies cleanly and fixes an uncaught error that will not be missed again now! RTBC

#7

Category:task» bug report
Assigned to:Anonymous» boombatower

chx noted that assertTrue|False would be more appropriate (been away too long)

AttachmentSizeStatusTest resultOperations
simpletest_assertTitle.patch2.05 KBIdleUnable to apply patch simpletest_assertTitle_2.patchView details

#8

Still confirming RTBC. #7 is good to go.

#9

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks!

#10

Priority:normal» critical
Status:fixed» needs review

Testing bot did not catch a failure now that assertTitle works properly.

AttachmentSizeStatusTest resultOperations
head-broken-D7.patch879 bytesIdlePassed: 7647 passes, 0 fails, 0 exceptionsView details

#11

Really need to figure out why some slaves do not catch all the issues

#12

Revised patch that uses "Preview | Drupal" like the rest of core tests.

AttachmentSizeStatusTest resultOperations
head-broken-D7.patch817 bytesIdlePassed: 7629 passes, 0 fails, 0 exceptionsView details

#13

Looks like its only slave #4 that is picking up the broken-ness. All others, no.

#14

Status:needs review» reviewed & tested by the community

Looks good.

#15

@11: We figured out the issue...so the testing bot misses should no longer occur. #338292: Correct regex for singular assertions

#16

Status:reviewed & tested by the community» fixed

Committed to CVS HEAD. Thanks.

#17

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here