I'm trying to set up tests that run automatically for my custom modules, but have failed to get tests to pass with 'drush test-run'. My eventual goal is to have these tests run under Jenkins. When I run my tests in a browser from admin/config/development/testing they all pass.
The following is sample shell script that installs drupal in a directory and then tries to run the tests for the page_example module.
For me this fails with errors like:
Page example functionality 27 passes, 30 fails, 0 exceptions, and 14 debug messages [error]
Test PageExampleTestCase->pageExampleVerifyNoAccess() failed: HTTP response expected 403, actual 404 [error]
Test PageExampleTestCase->pageExampleVerifyNoAccess() failed: HTTP response expected 403, actual 404 [error]
Test PageExampleTestCase->testPageExampleBasic() failed: Failed to set field name to m03SvPNI [error]
Test PageExampleTestCase->testPageExampleBasic() failed: Failed to set field pass to qtmnwVrqpV [error]
...