Open amejiarosario opened 11 years ago
Putting ENV["TEST_ENV_NUMBER"]
into each databases name could help reduce the collisions
@amejiarosario I have made it work by creating separate schema for each tenant before suite, see: https://github.com/influitive/apartment/wiki/Testing-Your-Application
Company.create!(name: 'Influitive Corp.', subdomain: "app#{ENV["TEST_ENV_NUMBER"]}")
So clearly it is not parallel_tests
issue but feature
;)
This is a gem! I have 8 cores and tests that used to take up to 4 min. runs in around 30 secs. However, I noticed some of them fails when I run it with parallel tests and that's because I'm using the apartment gem to create multiple schemas on postgres. Any work around? Ideas?