Ticket #313 (closed defect: fixed)

Opened 6 years ago

Last modified 6 years ago

rewrite tests - import test data explicitly

Reported by: business@… Owned by: s.h.sikkema@…
Priority: major Milestone: 0.6.6
Component: Unknown Version: 0.6.3
Keywords: Cc: robert@…
Hardware: Operating system:
Product: URL:


  1. Make sure in Bootstrap.groovy that in the test environment no bootstrapping of the database is done.
  1. The integration tests gscf.* all expect BootstrapTemplates? .initTemplateOntologies and .initTemplates() to be called, so call these methods in the test setup
  1. The integration test SampleSearchTests? expect both BootstrapTemplates? and BootstrapStudies? methods to be called. Also call them in test setup

Change History

comment:1 Changed 6 years ago by business@…

  • Cc robert@… added

comment:2 Changed 6 years ago by robert@…

I've moved the bootstrap classes to package dbnp.configuration, since classes in the default package can't be imported: http://stackoverflow.com/questions/2193226/how-to-import-a-class-from-default-package

The SampleSearchTests? have been adjusted to load the bootstrap methods itself. This doesn't function properly yet. Would you take a look at it yourself?

comment:3 Changed 6 years ago by robert@…

Kees' change in r1523 has reverted the bootstrap change (from r1520), which will still be needed. You might take a look at both changes

comment:4 Changed 6 years ago by business@…

r1520 doesn't seem to have any bootstrap changes?

comment:5 Changed 6 years ago by business@…

  • Milestone changed from 0.7 to 0.6.4

comment:6 Changed 6 years ago by work@…

  • Milestone changed from 0.6.5 to 0.6.6

comment:7 Changed 6 years ago by business@…

  • Status changed from new to closed
  • Resolution set to fixed

Because bootstrapping at the beginning of each test slows down total testing time enormously, we retain the test data in the bootstrap.
See BootStrap?.groovy for comments on what is run in which environment.

Note: See TracTickets for help on using tickets.