Currently I've two instances of Drupal and in the 2nd one I want to make my environment very clean to test some things.
Currently Simpletest executing test files even the modules are disabled and I've Fatal error, even the modules are disabled.
See:
$ drush -vy test-run
Initialized Drupal 7.14 root directory at docroot [notice]
Initialized Drupal site aat-drupal at sites/aat-drupal [notice]
Drush command terminated abnormally due to an unrecoverable error. [error]
Error: Class 'AATWebAPITestProvider' not found in sites/all/modules/custom/aat_soa/aat_soa.test, line 127
$ drush -vy pm-list | grep aat_soa
Initialized Drupal 7.14 root directory at docroot [notice]
Initialized Drupal site aat-drupal at sites/aat-drupal [notice]
AAT SOA AAT Statement of Assessment (aat_soa) Module Not installed 7.x-1.0
Command dispatch complete [notice]
The class is defined in other module, which is disabled as well.
There is a similar issue: #1108098: On simpletest list I see test of disabled modules
Is there any way to make Simpletest to not parse test files of modules which are disabled?
Comments
Comment #1
kenorb commentedBTW.
File where this class is defined in disabled module is specified by following line in the .info file :
files[] = test/aat_webapi.test.inc
Comment #2
kenorb commentedThe problem happened again:
Module aat_job is not even installed.
Comment #3
kenorb commentedPatch in the attachment.
Comment #3.0
kenorb commentedremoved path
Comment #4
kenorb commentedThe issue is still on-going. I'm attaching the patch with corrected paths.
There is also suggestion to add additional argument to ./scripts/run-tests.sh similar to --all, but --enabled which will test all the enabled modules only.
Comment #5
alex.skrypnykPatched works as advertised!
Comment #6
drcolossos commentedThis does indeed solve the problem and should be merged. I don't understand how others are not running into this issue?
Comment #7
br0kenComment #8
drcolossos commentedCan you at leat say why this "works as designed"?
Comment #9
br0ken@DrColossos, here is the answer: https://www.drupal.org/node/1108098#comment-4553734
Comment #10
drcolossos commentedThank you for the link!