Provide a settings page for hidden SimpleTest variables

boombatower - June 23, 2009 - 22:19
Project:Drupal
Version:7.x-dev
Component:simpletest.module
Category:task
Priority:normal
Assigned:boombatower
Status:closed
Description

SimpleTest has two variables which can be quite handy, but both of which are not visible in any way other then by reading the code.

This patch creates a settings page for the two variables and is in preparation for the verbose mode setting to be provided by #500280: Provide a verbose mode for SimpleTest.

#1

boombatower - June 23, 2009 - 22:19
Assigned to:Anonymous» boombatower
Status:active» needs review
AttachmentSizeStatusTest resultOperations
500292-simpletest-settings.patch2.45 KBIdleFailed: Failed to install HEAD.View details

#2

System Message - June 24, 2009 - 01:05
Status:needs review» needs work

The last submitted patch failed testing.

#3

boombatower - June 24, 2009 - 02:13
Status:needs work» needs review

Test slave crapped.

#4

moshe weitzman - June 24, 2009 - 02:47
Status:needs review» reviewed & tested by the community

Very handy.

#5

System Message - June 24, 2009 - 02:47
Status:reviewed & tested by the community» needs work

The last submitted patch failed testing.

#6

moshe weitzman - June 24, 2009 - 02:47
Status:needs work» reviewed & tested by the community

#7

Dries - June 24, 2009 - 05:35

- If we're going to accept auth information we should have a username and password field IMO.

- The form descriptions are not really helpful. They don't tell me why authentication is useful, or when it should be configured. They don't tell me why I might want to clean after each test run. I think we need to make those settings more accessible for non SimpleTest experts -- or keep them hidden.

- Shouldn't this live under Site configuration?

#8

boombatower - June 24, 2009 - 21:11

I purely matched SimpleTest variable that is a single field for username/password, I'll split it up on form.

Will add descriptions.

I wasn't sure about it living under site configuration. SimpleTest is a development tool and doesn't effect the overall site so it seemed odd to place it in site configuration. Most development tools have their own special settings and such and this seemed like a clean pattern to keep them out of site configuration.

Since I am starting something new I definitely want opinions...

I'll try and get new patch shortly.

#9

boombatower - June 24, 2009 - 23:44

This should do the trick.

Please let the hook_uninstall() variable removal be cleaned up in separate issue: #500270: SimpleTest hook_uninstall() does not delete the correct variables

#10

boombatower - June 24, 2009 - 23:44
AttachmentSizeStatusTest resultOperations
500292-simpletest-settings.patch4.25 KBIdleFailed: Failed to install HEAD.View details

#11

Dries - June 25, 2009 - 14:08
Status:reviewed & tested by the community» needs work

- Can you put the help text on one line for consistency?

- Where can people fine the [result_id]? The documentation is not telling me that.

- Can we reduce 'simpletest_httpauth_credentials_username' to 'simpletest_username'? Ditto for password.

Otherwise looks good.

#12

boombatower - June 25, 2009 - 18:45
Status:needs work» needs review

Summary of what this patch does:

  • Splits the variable simpletest_httpauth_credentials into simpletest_username and simpletest_password.
  • Provides a settings page for the httpauth variables and the simpletest_clear_results variable.
AttachmentSizeStatusTest resultOperations
500292-simpletest-settings.patch4.17 KBIdlePassed: 11563 passes, 0 fails, 0 exceptionsView details

#13

System Message - June 27, 2009 - 19:17
Status:needs review» needs work

The last submitted patch failed testing.

#14

boombatower - June 28, 2009 - 01:58
Status:needs work» needs review

#15

Dries - July 7, 2009 - 08:07
Status:needs review» fixed

OK, the latest changes look good. The location of the settings page is OK for now, but could be revisited as part of the new IA. Committed to CVS HEAD.

#16

System Message - July 21, 2009 - 08:10
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.