-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from maester365/create-pull-request/patch
Update maester.dev powershell docs
- Loading branch information
Showing
6 changed files
with
188 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,129 @@ | ||
--- | ||
sidebar_class_name: hidden | ||
description: Compares Maester test result JSON files | ||
id: Compare-MtTestResult | ||
title: Compare-MtTestResult | ||
hide_title: false | ||
hide_table_of_contents: false | ||
custom_edit_url: https://github.com/maester365/maester/blob/main/powershell/public/Compare-MtTestResult.ps1 | ||
--- | ||
|
||
## SYNOPSIS | ||
|
||
Compares Maester test result JSON files | ||
|
||
## SYNTAX | ||
|
||
### Directory | ||
|
||
```powershell | ||
Compare-MtTestResult [-BaseDir] <Object> [-ProgressAction <ActionPreference>] [<CommonParameters>] | ||
``` | ||
|
||
### Files | ||
|
||
```powershell | ||
Compare-MtTestResult [-PriorTest] <Object> [-NewTest] <Object> [-ProgressAction <ActionPreference>] | ||
[<CommonParameters>] | ||
``` | ||
|
||
## DESCRIPTION | ||
|
||
Will compare the most recent two test result JSON outputs from prior Invoke-Maester | ||
runs, or will accept any two test result JSON files and provide the tests that have changed. | ||
|
||
## EXAMPLES | ||
|
||
### EXAMPLE 1 | ||
|
||
```powershell | ||
Compare-MtTestResult -BaseDir .\test-results | ||
``` | ||
|
||
### EXAMPLE 2 | ||
|
||
```powershell | ||
$tests = @{ | ||
NewTest = (Get-Content .\test-results\TestResults-2024-05-21-182925.json | ConvertFrom-Json) | ||
PriorTest = (Get-Content .\test-results\TestResults-2024-05-20-182925.json | ConvertFrom-Json) | ||
} | ||
Compare-MtTestResult @tests | ||
``` | ||
|
||
## PARAMETERS | ||
|
||
### -BaseDir | ||
|
||
\{\{ Fill BaseDir Description \}\} | ||
|
||
```yaml | ||
Type: Object | ||
Parameter Sets: Directory | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -PriorTest | ||
\{\{ Fill PriorTest Description \}\} | ||
```yaml | ||
Type: Object | ||
Parameter Sets: Files | ||
Aliases: | ||
|
||
Required: True | ||
Position: 1 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -NewTest | ||
\{\{ Fill NewTest Description \}\} | ||
```yaml | ||
Type: Object | ||
Parameter Sets: Files | ||
Aliases: | ||
|
||
Required: True | ||
Position: 2 | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### -ProgressAction | ||
\{\{ Fill ProgressAction Description \}\} | ||
```yaml | ||
Type: ActionPreference | ||
Parameter Sets: (All) | ||
Aliases: proga | ||
|
||
Required: False | ||
Position: Named | ||
Default value: None | ||
Accept pipeline input: False | ||
Accept wildcard characters: False | ||
``` | ||
### CommonParameters | ||
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). | ||
## INPUTS | ||
## OUTPUTS | ||
## NOTES | ||
## RELATED LINKS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters