Skip to content

Commit

Permalink
Update runtests.cfm
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Jun 8, 2024
1 parent 0a39ed7 commit a22fe5d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions custom/presidecms/tests/runtests.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
reporter = url.reporter ?: "raw";
scope = url.scope ?: "full";
directory = url.directory ?: "";
systemOutput(expandPath("unit"), true);
systemOutput(DirectoryList("unit"), true);
testbox = new testbox.system.TestBox( options={}, reporter=reporter, directory={
recurse = true
, mapping = Len( directory ) ? "unit.api.#directory#" : "unit"
Expand Down Expand Up @@ -416,6 +420,8 @@
fails = arrayLen( failedTestCases );
if ( fails > 0 )
throw "#fails# test cases failed, exiting";
else if (result.getTotalPass() eq 0 )
throw "No tests passed, none found?, exiting";
else
abort;
</cfscript>

0 comments on commit a22fe5d

Please sign in to comment.