File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
src/test/java/org/utplsql/cli Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -111,13 +111,22 @@ public void coverageReporterWriteAssetsToOutput() throws Exception {
111111
112112 runCmd .run ();
113113
114+ // Run twice to test overriding of assets
115+ runCmd = RunCommandTestHelper .createRunCommand (RunCommandTestHelper .getConnectionString (),
116+ "-f=ut_coverage_html_reporter" , "-o=" + coveragePath , "-s" );
117+
118+ runCmd .run ();
119+
114120 // Check application file exists
115121 File applicationJs = coverageAssetsPath .resolve (Paths .get ("application.js" )).toFile ();
116122 assertTrue (applicationJs .exists ());
117123
118124 // Check correct script-part in HTML source exists
119125 String content = new Scanner (coveragePath ).useDelimiter ("\\ Z" ).next ();
120126 assertTrue (content .contains ("<script src='" + coverageAssetsPath .toString () + "/application.js' type='text/javascript'>" ));
127+
128+ // Check correct title exists
129+ assertTrue (content .contains ("<title>Code coverage</title>" ));
121130 }
122131
123132 @ AfterEach
You can’t perform that action at this time.
0 commit comments