Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
simpletest.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
30 Nov 2010 at 06:19 UTC
Updated:
3 Jan 2014 at 02:41 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dalinComment #2
dalinFound 10 instances. Not quite as many as I expected. But should save about 2mins per test run.
Comment #4
dalinThat's what PIFR is for I guess - to catch our mistakes.
Comment #5
sunComment #6
Niklas Fiekas commentedLooks awesome. This would have to go into 8.x first. Needs a reroll.
Comment #7
LSU_JBob commentedrerolled for 8.x, picked up from novice queue
Comment #8
sunThe comment right above the class definition explains why it's not a unit test.
Theme function tests are functional tests and not unit tests by design, as they rely on the theme registry, and we don't want to test the theme registry or behavior of the parent site that is executing the test.
Comment #9
LSU_JBob commentedokay, reverting those two back.
Comment #10
jbrown commented#9: improve_test_performance-984874-5482608.patch queued for re-testing.
Comment #11
jbrown commentedI think this could be committed.
Comment #12
sunOK
Not OK. Calls into system_region_list(), and relies on the global $theme_key.
Not OK. Calls into image_get_available_toolkits(), which invokes module hooks to return available image toolkits, which in turn means that it relies on the system environment/configuration.
Not OK. Performs a HTTP request to core/xmlrpc.php, which in turn invokes hook_xmlrpc() in all modules, and thus, relies on the system environment/configuration.
Comment #13
LSU_JBob commented@sun when you mean 'Not OK' are you advising removal of that line? If so I can cut out those last 3 and re-roll.
Comment #14
jbrown commentedYes - the changes than @sun marked as Not OK need to be removed from the patch.
Comment #15
LSU_JBob commentedCool, re-rolled!
Comment #16
Niklas Fiekas commentedThank you.
Those tests are - like sun already stated - not dependent on configuration and environment, so yeah, that seams to be it. Though fewer conversions are left than I hoped for ;)
Comment #17
dries commentedGood catch. Committed to 8.x.
Moving to 7.x for back-porting.
Comment #18
albert volkman commentedD7 backport.
Comment #19
Niklas Fiekas commentedThank you.
Comment #20
sunShortening and clarifying issue, since every time I see this issue I'm thinking of something completely different.
Comment #21
webchickCommitted and pushed to 7.x. Thanks!