Skip to content

Commit

Permalink
Merge pull request #8 from Ortus-Solutions/development
Browse files Browse the repository at this point in the history
v1.3.0
  • Loading branch information
lmajano authored Oct 5, 2023
2 parents 04238e6 + 04b4ae5 commit 0ffc1d2
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 4 deletions.
8 changes: 4 additions & 4 deletions box.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"name":"TestBox CLI",
"version":"1.2.2",
"version":"1.3.0",
"location":"https://downloads.ortussolutions.com/ortussolutions/commandbox-modules/testbox-cli/@build.version@/testbox-cli-@build.version@.zip",
"slug":"testbox-cli",
"author":"Ortus Solutions, Corp",
"homepage":"https://www.forgebox.io/view/testbox-cli",
"documentation":"https://github.com/commandbox-modules/wiki",
"documentation":"https://github.com/Ortus-Solutions/testbox-cli/wiki",
"repository":{
"type":"git",
"url":"https://github.com/commandbox-modules/testbox-cli"
"url":"https://github.com/Ortus-Solutions/testbox-cli"
},
"bugs":"https://github.com/commandbox-modules/testbox-cli/issues",
"bugs":"https://github.com/Ortus-Solutions/testbox-cli/issues",
"shortDescription":"The TestBox CLI will assist you with running, reporting and generating tests",
"type":"commandbox-modules",
"keywords":[],
Expand Down
10 changes: 10 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- New runners section on the test browser

### Fixed

- Aggregated colors for failures and errors on tests results output.

* * *

## [1.2.2] - 2023-08-18

### Fixed
Expand Down
6 changes: 6 additions & 0 deletions models/CLIRenderer.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,12 @@ component {
}
}

var thisColor = getAggregatedColor(
arguments.testData.totalError,
arguments.testData.totalFail,
0
);

// Print Summary
// cfformat-ignore-start
arguments.print
Expand Down
16 changes: 16 additions & 0 deletions templates/testbox/test-browser/index.cfm
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@
<a href="index.cfm?action=runTestBox&path=#URLEncodedFormat( url.path )#" target="_blank"><button class="btn btn-primary btn-sm my-1" type="button">Run All</button></a>
</div>
</div>
<!--- Runners --->
<div class="row">
<div class="col-md-12 mb-4">
<h2>Availble Test Runners: </h2>
<p>
Below is a listing of the runners matching the "runner*.cfm" pattern.
</p>
<cfset runners = directoryList( expandPath( "./" ), false, "query", "runner*.cfm" )>
<cfoutput query="runners">
<a href="#runners.name#" target="_blank" class="btn btn-secondary btn-sm my-1 mx-1">#runners.name#</a>
</cfoutput>
</div>
</div>
<div class="row">
<div class="col-md-12">
<form name="runnerForm" id="runnerForm">
Expand Down

0 comments on commit 0ffc1d2

Please sign in to comment.