Skip to content

Commit

Permalink
PRESIDECMS-2873 report database used
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed May 22, 2024
1 parent dfa9f9b commit d3513e5
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/runtests.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,14 @@
result = testbox.getResult();
} // silent
public string function identifyDatasource ( struct datasource ) localmode=true {
dbinfo type="Version" datasource="#arguments.datasource#" name="verify";
dbDesc = [];
loop list="#verify.columnlist#" item="col" {
ArrayAppend( dbDesc, verify[ col ] );
}
return ArrayToList( dbDesc, ", " );
}
results = [];
results_md = ["## Preside CMS, Lucee #server.lucee.version# / Java #server.java.version#", ""];
Expand All @@ -294,6 +301,7 @@
arrayAppend( results, "Lucee Version: #server.lucee.version#");
arrayAppend( results, "Java Version: #server.java.version#");
arrayAppend( results, "Java Compiler Version: #server.java.javaCompilerVersion?:'unknown'#");
arrayAppend( results, "Database: #identifyDatasource('preside_test_suite')#");
arrayAppend( results, "TestBox Version: #testbox.getVersion()#");
arrayAppend( results, "Total Execution time: (#NumberFormat( ( getTickCount()-request._start) / 1000 )# s)");
arrayAppend( results, "Test Execution time: (#NumberFormat( result.getTotalDuration() /1000 )# s)");
Expand Down

0 comments on commit d3513e5

Please sign in to comment.