【发布时间】:2018-07-25 21:01:27
【问题描述】:
当我调用mvm test 时,我想在调用Surefire JUnit 之前执行setup.sql 脚本,然后再执行teardown.sql 脚本。
我从questions like this 知道如何在测试阶段执行脚本,但我不知道如何定义这个特定的事件序列。谢谢!
【问题讨论】:
-
听起来不像单元测试,更像是集成测试,这意味着使用与 JUnit 不同的东西并通过 maven-failsafe-plugin 运行 ...除此之外,您可以使用 sql-maven-plugin
标签: maven junit maven-surefire-plugin