File tree Expand file tree Collapse file tree
src/test/java/org/utplsql/maven/plugin Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33import org .apache .maven .plugin .MojoExecutionException ;
44import org .apache .maven .project .MavenProject ;
55import org .junit .Test ;
6+ import org .utplsql .api .reporter .CoreReporters ;
7+ import org .utplsql .maven .plugin .model .ReporterParameter ;
68
7- public class UtPLSQLMojoIT {
9+ public class UtPLSQLMojoTest {
810
911 @ Test
1012 public void execute () throws MojoExecutionException {
1113 UtPLSQLMojo utPLSQLMojo = new UtPLSQLMojo ();
1214 utPLSQLMojo .project = new MavenProject ();
15+ utPLSQLMojo .targetDir = "target" ;
16+
1317 utPLSQLMojo .url = "jdbc:oracle:thin:@127.0.0.1:1521:XE" ;
1418 utPLSQLMojo .user = "UT3" ;
1519 utPLSQLMojo .password = "UT3" ;
1620
21+ ReporterParameter junitReporter = new ReporterParameter ();
22+ junitReporter .setConsoleOutput (true );
23+ junitReporter .setFileOutput ("junit-report.xml" );
24+ junitReporter .setName (CoreReporters .UT_JUNIT_REPORTER .name ());
25+ utPLSQLMojo .reporters .add (junitReporter );
26+
1727 utPLSQLMojo .execute ();
1828 }
1929}
You can’t perform that action at this time.
0 commit comments