My test env is doing something that doesn't happen in dev. So, if I could run the tests in the dev env, then that would meat that there is something wrong with my tests (if they still fail), or the test env is broke (if they don't fail)
currently, I'm running single functional tests by doing
ruby /path/to/test_controller_test.rb
If you're running individual tests, there's nothing to stop you from taking a snapshot of your development
database and loading it in to the test
database. If you run rake test
then that will get cleared out, so keep that in mind.
You may have tests that depend on records that don't exist, usually the result of making unsafe assumptions, or methods that don't work properly when certain things have not been built correctly. It is rare to find that the settings in config/environments
have any direct effect on the tests themselves.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.