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 {
111
111
112
112
runCmd .run ();
113
113
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
+
114
120
// Check application file exists
115
121
File applicationJs = coverageAssetsPath .resolve (Paths .get ("application.js" )).toFile ();
116
122
assertTrue (applicationJs .exists ());
117
123
118
124
// Check correct script-part in HTML source exists
119
125
String content = new Scanner (coveragePath ).useDelimiter ("\\ Z" ).next ();
120
126
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>" ));
121
130
}
122
131
123
132
@ AfterEach
You can’t perform that action at this time.
0 commit comments