ci-reporter / ci_reporter

CI::Reporter is an add-on to popular test frameworks that allows you to generate XML reports
MIT License
343 stars 111 forks source link

ci_reporter alters migration #129 #156

Open allnash opened 9 years ago

allnash commented 9 years ago

I've been trouble I just ran rake db:migrate followed by rspec, the test suite passes, but not when running rake ci:setup:rspec spec. It strangely removes the database triggers on the test database.

Are you guys running rake db:test:prepare?

RAILS_ENV=test RUBY_GC_MALLOC_LIMIT=700000000 RUBY_FREE_MIN=500000 RUBY_HEAP_MIN_SLOTS=40000 rake -f Rakefile.build ci:setup:rspec spec 2>&1

I am pretty sure this plugin is doing something weird.

allnash commented 9 years ago

http://stackoverflow.com/questions/21469705/jenkins-rspec-tests-complaining-about-pending-migrations

allnash commented 9 years ago

I am pretty sure this is the case and its screwing me up

allnash commented 9 years ago

Is there a way to make it skip test prepare?

shepmaster commented 9 years ago

Probably related to #116.

shepmaster commented 9 years ago

You should run your rake command in the verbose mode to see if anything is triggering db:test:prepare. Out of wild curiosity, did you just recently upgrade to Rails 4.2? I believe there is a new option that ensures that your database schema matches when running tests, which will start by dropping the database, which could delete triggers.