Skip to content

Commit 4df068f

Browse files
committed
Added file reporter
1 parent 260603c commit 4df068f

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

src/test/java/org/utplsql/maven/plugin/UtPLSQLMojoIT.java renamed to src/test/java/org/utplsql/maven/plugin/UtPLSQLMojoTest.java

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,27 @@
33
import org.apache.maven.plugin.MojoExecutionException;
44
import org.apache.maven.project.MavenProject;
55
import 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
}

0 commit comments

Comments
 (0)