Hi group,
My test suites don’t behave by the book. I’ve been scratching my head
for hours in vain. I hope you can help me solve this mystery.
1/ With autotest, and
2/ when run manually, class by class
they all pass
BUT
3/ With ‘rake test:units’ + transactional fixture => 25 errors
4/ With ‘rake test:units’ withouth transactional fixture => 33 errors
(not 25)
130 tests, 232 assertions, 3 failures, 25 errors
and
130 tests, 220 assertions, 4 failures, 33 errors
AND
IN BOTH CASEs (autotest + rake)
5/ tables/models are not empty when they should (in the setup
methods), even when I use no fixtures.
==> this setup code fails
def setup
assert_equal 0, Production.count
end
6/ I get 2 dozens warnings like:
./test/unit/lib/grid_calendar/…/…/…/test_helper.rb:101:
warning: already initialized constant CANT_BE_BLANK
Any idea? I’m lost.
- I use Edge Rails + simply_bdd (and a dozen other plugins)
- All the tables are InnoDB (transactional), and I work with MySql4
- Locomotive).
- I can’t tell when this started happening, as I’ve been using
autotest for weeks.
- I can’t tell when this started happening, as I’ve been using
TIA
Alain