serpapi / turbo_tests

Run RSpec tests on multiple cores. Like parallel_tests but with incremental summarized output. Originally extracted from the Discourse and Rubygems source code.
https://rubygems.org/gems/turbo_tests
MIT License
171 stars 26 forks source link

Unable to run tests on GitHub CI #62

Open nrgbistro opened 3 weeks ago

nrgbistro commented 3 weeks ago

I'm trying to run turbo_tests on my Ruby project, which requires a postgresql database running, one for each parallel tester. It seems that running bin/rails parallel:create does not properly set the TEST_ENV_NUMBER environment variable in GitHub CI, as the output from the command is:

Database 'test_database' already exists
Database 'test_database' already exists

When I run locally, I get test_database1 and test_database2. I've made sure to set PARALLEL_TEST_FIRST_IS_1=true, but even without that the second database name should be test_database2. Could someone help me run this test suite on in a GitHub action workflow? I would prefer not to use a matrix.

TheRoyalTnetennba commented 2 weeks ago

@nrgbistro did you ever figure this out?

nrgbistro commented 2 weeks ago

No I haven't, I'm currently sticking with rspec for my CI. This would be nice to have but isn't a priority for me now. Let me know if you figure it out.