Hi Oscar,
Thanks for this, makes sense.

Could you raise a ticket and make the commit... it looks simple enough.
And, perhaps, add a short page to our website (somewhere under core/bdd, I
guess).

Cheers
Dan


On Monday, 10 March 2014, GESCONSULTOR - Óscar Bou <[email protected]>
wrote:

>
> Hi to all,
>
> Just to let others now.
>
> Our BDD test suites are becoming quite large and we were experiencing long
> execution times when running them.
>
> They can be greatly improved simply by configuring DataNucleus to not
> validate tables and indexes. As all the schema is recreated on each
> feature, seems not necessary.
>
> For that, simply add on the SystemInitializer the following lines:
>
>  private IsisConfiguration testConfiguration() {
>             final IsisConfigurationDefault testConfiguration = new
> IsisConfigurationDefault();
>
>             // Don't do validations that consume setup time.
>
> testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.autoCreateSchema",
> "true");
>
> testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.validateTables",
> "false");
>
> testConfiguration.add("isis.persistor.datanucleus.impl.datanucleus.validateConstraints",
> "false");
>
>
> HTH,
>
> Oscar

Reply via email to