Skip to content

Invoke AcmaUnitTests

Ryan Newington edited this page Sep 4, 2025 · 7 revisions

Invoke-AcmaUnitTests

Description

Executes all unit tests defined in the ACMA configuration file that was loaded by the Connect-AcmaEngine cmdlet. Unit tests validate business rules, constructors, and data integrity within the ACMA system.

Syntax

Invoke-AcmaUnitTests [-BreakOnTestFailure <bool>] [-HtmlReportFileName <string>]

Parameters

BreakOnTestFailure (Boolean)

Stops the test execution immediately when the first test failure occurs

  • Required: No
  • Position: Named
  • Pipeline input: No
  • Default: If not specified, all tests will run regardless of failures

HtmlReportFileName (String)

The full path where the HTML test results report will be saved

  • Required: No
  • Position: Named
  • Pipeline input: No
  • Accepts: String path for the output HTML file

Return Type

Returns test execution results and statistics. If -HtmlReportFileName is specified, also creates an HTML report file.

Examples

Run all unit tests

Invoke-AcmaUnitTests

Run tests and stop on first failure

Invoke-AcmaUnitTests -BreakOnTestFailure $true

Generate HTML report of test results

Invoke-AcmaUnitTests -HtmlReportFileName "C:\temp\unit-test-results.html"

Clone this wiki locally