java - How to avoid database auto clear when running Play Framework test? -
i want run serveral unit test , functional test on play framework app(play 1.4.0). test class like:
public class statistictest extends unittest { @test public void testoutputstatistics() { //code } }
and have data in database test class need read. play test clear data in database automatically. have import data via sql using fixtures.executesql() every time. lowers efficiency. want know how can avoid auto clear.
in application.conf, set test.jpa.ddl "update" rather "create".
%test.jpa.ddl=update
Comments
Post a Comment