Skip to content

Commit

Permalink
Update index.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 8, 2024
1 parent f96634d commit a6f465a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions custom/lucee-spreadsheet/test/index.cfm
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
<cfscript>
paths = [ "root.test.suite" ];
try{
headline = "Lucee #server.lucee.version# / Java #server.java.version#";
if ( structKeyExists( server.system.environment, "GITHUB_STEP_SUMMARY" ) ){
fileWrite( server.system.environment.GITHUB_STEP_SUMMARY, "##" & headline & chr(10) );
//fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, report );
} else {
systemOutput( headline, true );
}
setting requesttimeout=10000;
testRunner = New testbox.system.TestBox();
result = testRunner.runRaw( bundles=paths );
reporter = testRunner.buildReporter( "text" );
report = " disabled ";
try {
// report = reporter.runReport( results=result, testbox=testRunner, justReturn=true );
// report = reporter.runReport( results=result, testbox=testRunner, justReturn=true );
} catch (e) {
systemOutput(e, true);
}
report = "disabled";
failure = ( result.getTotalFail() + result.getTotalError() ) > 0;
headline = "Lucee #server.lucee.version# / Java #server.java.version#";
if ( structKeyExists( server.system.environment, "GITHUB_STEP_SUMMARY" ) ){
fileWrite( server.system.environment.GITHUB_STEP_SUMMARY, "## #(failure?':x:':':heavy_check_mark:')#" & headline & chr(10) );
//fileAppend( server.system.environment.GITHUB_STEP_SUMMARY, report );
} else {
systemOutput( headline, true );
}
// #(failure?':x:':':heavy_check_mark:')#
systemOutput( report, true );
if ( failure ) {
Expand Down

0 comments on commit a6f465a

Please sign in to comment.