zion3mx / c5-db-migration

Automatically exported from code.google.com/p/c5-db-migration
0 stars 0 forks source link

Run check goal prior to running tests #36

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
If there are pending migrations, the build should fail before running
tests. It does not really make sense to run tests against an out-of-date
database and developers will not have to remember to check for pending
migrations.

Original issue reported on code.google.com by asal...@gmail.com on 24 May 2010 at 9:22

GoogleCodeExporter commented 9 years ago
I added a binding for the 'check' goal to the 'process-test-resources' phase 
but this
does not automatically run the goal at that phase by including the plugin. It 
still
requires an explicit execution block for the plugin. Having it run automatically
without the execution block would require customizing the default Maven 
lifecycle
which is just not worth it.

Original comment by asal...@gmail.com on 24 May 2010 at 11:49