If I have my Drupal site in a subfolder, that is, reachable at http://localhost/drupal, then running run-tests.sh without the --url option causes tests to fail, because the pages can't be found.
But it's not clear that that is the cause of the problem. It just looks like tests are failing.
run-tests.sh needs to sanity check that the Drupal site is reachable, and fail BEFORE tests are run, and say WHY it's failing.
Comments
Comment #2
cilefen commentedFor this to be Major it would have to:
The workaround is to read the docs:
Comment #3
mile23run-tests.shdoesn't care whether the URL is reachable because not all tests need a URL. For instance if you only ran unit tests that didn't ever hit the http server, then all tests would pass even if you added--url this://should.not.work/.Comment #11
quietone commentedTriaging issues in simpletest.module as part of the Bug Smash Initiative to determine if they should be in the Simpletest Project or core.
run-tests is still in core so moving to the Phpunit component, the only testing related component.
Comment #16
quietone commentedReading this issue again it looks like this is working as designed.