On 12 March 2014 09:47, GESCONSULTOR - Óscar Bou <[email protected]>wrote:

> Hi Dan.
>
> I have the following alternatives:
> - Create a new descendant of IsisConfigurationDefault for tests
> (IsisConfigurationDefaultForTests) with those properties added by default.
>


this one, I think.

Let's call it IsisConfigurationForTests  (skip the "Default" suffix, can
only be one default).

Will you raise the ticket/implement?

Cheers
Dan




> - Directly modify IsisConfigurationDefault to add them by default.
>
> As it's a private method defined on each SystemInitializer I don't see any
> other "generic" way...
>
>
> El 10/03/2014, a las 11:11, Dan Haywood <[email protected]>
> escribió:
>
>
> 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
>
>
>
> Óscar Bou Bou
> Responsable de Producto
> Auditor Jefe de Certificación ISO 27001 en BSI
> CISA, CRISC, APMG ISO 20000, ITIL-F
>
>    902 900 231 / 620 267 520
>    http://www.twitter.com/oscarbou
>
>    http://es.linkedin.com/in/oscarbou
>
>    http://www.GesConsultor.com <http://www.gesconsultor.com/>
>
>
>
> Este mensaje y los ficheros anexos son confidenciales. Los mismos
> contienen información reservada que no puede ser difundida. Si usted ha
> recibido este correo por error, tenga la amabilidad de eliminarlo de su
> sistema y avisar al remitente mediante reenvío a su dirección electrónica;
> no deberá copiar el mensaje ni divulgar su contenido a ninguna persona.
> Su dirección de correo electrónico junto a sus datos personales constan en
> un fichero titularidad de Gesdatos Software, S.L. cuya finalidad es la de
> mantener el contacto con Ud. Si quiere saber de qué información disponemos
> de Ud., modificarla, y en su caso, cancelarla, puede hacerlo enviando un
> escrito al efecto, acompañado de una fotocopia de su D.N.I. a la siguiente
> dirección: Gesdatos Software, S.L. , Paseo de la Castellana, 153 bajo -
> 28046 (Madrid), y Avda. Cortes Valencianas num. 50, 1ºC - 46015 (Valencia).
> Asimismo, es su responsabilidad comprobar que este mensaje o sus archivos
> adjuntos no contengan virus informáticos, y en caso que los tuvieran
> eliminarlos.
>
>
>
>
>
>

Reply via email to