• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

MushroomObserver / mushroom-observer / 20254936842
95%
main: 96%

Build:
Build:
LAST BUILD BRANCH: nimmo-phlex-name-classification-forms
DEFAULT BRANCH: main
Ran 16 Dec 2025 03:04AM UTC
Jobs 1
Files 824
Run time 2min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Dec 2025 12:51AM UTC coverage: 95.269% (-0.01%) from 95.279%
20254936842

Pull #3582

github

mo-nathan
Fix parallel testing by adding MySQL config generation

ScriptTest#test_lookup_user was failing in parallel mode because bash
scripts couldn't connect to worker-specific databases. The test passed
individually but failed when the suite ran in parallel.

Root causes:
- Example database.yml files lacked MO_TEST_DATABASE environment variable
- Worker-specific MySQL config files (mysql-test-N.cnf) weren't generated
- Scripts using bash_include needed database names in config files

Changes:
- Update db/macos/database.yml and db/vagrant/database.yml with:
  - MO_TEST_DATABASE support for parallel testing
  - Multi-database configuration (primary and cache)
- Create ParallelTestConfigService to generate/cleanup MySQL configs
- Add rake tasks (parallel:test:setup, parallel:test:cleanup)
- Add comprehensive test suite (12 tests, 171 assertions)
- Update documentation with setup instructions
- Fix rubocop violation in migration file

Developers need to recopy config/database.yml from examples and run
`rails parallel:test:setup` to generate the MySQL config files.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Pull Request #3582: Enable parallel testing

87 of 94 new or added lines in 7 files covered. (92.55%)

11 existing lines in 1 file now uncovered.

31336 of 32892 relevant lines covered (95.27%)

717.83 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
91.67
-8.33% app/jobs/application_job.rb
1
97.44
-2.56% app/models/field_slip_job_tracker.rb
2
96.72
app/classes/parallel_test_config_service.rb
3
0.0
app/classes/parallel_test_config_service/stdout_output_handler.rb

Uncovered Existing Lines

Lines Coverage ∆ File
11
96.06
0.0% app/models/observation.rb
Jobs
ID Job ID Ran Files Coverage
1 20254936842.1 16 Dec 2025 03:04AM UTC 824
95.27
GitHub Action Run
Source Files on build 20254936842
  • Tree
  • List 824
  • Changed 5
  • Source Changed 5
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20254936842
  • Pull Request #3582
  • PR Base - main (#20235148458)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc