Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci_reporter alters migration #129 #156

Open
allnash opened this issue Jul 8, 2015 · 5 comments
Open

ci_reporter alters migration #129 #156

allnash opened this issue Jul 8, 2015 · 5 comments
Labels

Comments

@allnash
Copy link

allnash commented Jul 8, 2015

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
Copy link
Author

allnash commented Jul 8, 2015

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

@allnash
Copy link
Author

allnash commented Jul 8, 2015

Is there a way to make it skip test prepare?

@shepmaster
Copy link
Member

Probably related to #116.

@shepmaster
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants