Skip to content

Commit ae330c9

Browse files
Merge pull request #93 from techthoughts2/Enhancements
adjusted tests for BeforeDiscovery use
2 parents 3065365 + 6ed822c commit ae330c9

File tree

13 files changed

+19
-12
lines changed

13 files changed

+19
-12
lines changed

docs/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [2.21.0]
9+
10+
- Catesta template module changes
11+
- Unit and infra tests changed from use of import using `BeforeAll` to `BeforeDiscovery`
12+
- Catesta primary module changes
13+
- Unit and infra tests changed from use of import using `BeforeAll` to `BeforeDiscovery`
14+
815
## [2.20.0]
916

1017
- Catesta template module changes

docs/Catesta.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Module Name: Catesta
33
Module Guid: 6796b193-9013-468a-b022-837749af2d06
44
Download Help Link: NA
5-
Help Version: 2.20.0
5+
Help Version: 2.21.0
66
Locale: en-US
77
---
88

src/Catesta.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ Add-BuildTask Test {
271271
$pesterConfiguration.CodeCoverage.Path = "/Users/runner/work/$ModuleName/$ModuleName/src/$ModuleName/*/*.ps1"
272272
}
273273
else {
274-
$pesterConfiguration.CodeCoverage.Path = "..\..\..\src\$ModuleName\*\*.ps1"
274+
$pesterConfiguration.CodeCoverage.Path = "..\..\..\$ModuleName\*\*.ps1"
275275
}
276276
$pesterConfiguration.TestResult.Enabled = $true
277277
$pesterConfiguration.TestResult.OutputPath = "$testOutPutPath\PesterTests.xml"

src/Catesta/Catesta.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
RootModule = 'Catesta.psm1'
1313

1414
# Version number of this module.
15-
ModuleVersion = '2.20.0'
15+
ModuleVersion = '2.21.0'
1616

1717
# Supported PSEditions
1818
# CompatiblePSEditions = @()

src/Catesta/Resources/Module/src/PSModule.build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ elseif ($PLASTER_PARAM_Pester -eq '5') {
353353
$pesterConfiguration.Run.PassThru = $true
354354
$pesterConfiguration.Run.Exit = $false
355355
$pesterConfiguration.CodeCoverage.Enabled = $true
356-
$pesterConfiguration.CodeCoverage.Path = "..\..\..\src\$ModuleName\*\*.ps1"
356+
$pesterConfiguration.CodeCoverage.Path = "..\..\..\$ModuleName\*\*.ps1"
357357
$pesterConfiguration.CodeCoverage.CoveragePercentTarget = $script:coverageThreshold
358358
$pesterConfiguration.CodeCoverage.OutputPath = "$codeCovPath\CodeCoverage.xml"
359359
$pesterConfiguration.CodeCoverage.OutputFormat = 'JaCoCo'

src/Catesta/Resources/Module/src/Tests/v5/Unit/Private/Private-Function.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BeforeAll {
1+
BeforeDiscovery {
22
Set-Location -Path $PSScriptRoot
33
$ModuleName = '<%=$PLASTER_PARAM_ModuleName%>'
44
$PathToManifest = [System.IO.Path]::Combine('..', '..', '..', $ModuleName, "$ModuleName.psd1")

src/Catesta/Resources/Module/src/Tests/v5/Unit/Public/Public-Function.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BeforeAll {
1+
BeforeDiscovery {
22
Set-Location -Path $PSScriptRoot
33
$ModuleName = '<%=$PLASTER_PARAM_ModuleName%>'
44
$PathToManifest = [System.IO.Path]::Combine('..', '..', '..', $ModuleName, "$ModuleName.psd1")

src/Catesta/Resources/Vault/src/Tests/v5/Unit/ExportedFunctions.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BeforeAll {
1+
BeforeDiscovery {
22
Set-Location -Path $PSScriptRoot
33
$ModuleName = '<%=$PLASTER_PARAM_ModuleName%>'
44
$PathToManifest = [System.IO.Path]::Combine('..', '..', $ModuleName, "$ModuleName.psd1")

src/Catesta/Resources/Vault/src/Tests/v5/Unit/Module-Function.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BeforeAll {
1+
BeforeDiscovery {
22
Set-Location -Path $PSScriptRoot
33
$ModuleName = '<%=$PLASTER_PARAM_ModuleName%>'
44
$vaultName = '<%=$PLASTER_PARAM_ModuleName%>'

src/Tests/Integration/New-ModuleProject.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
BeforeAll {
1+
BeforeDiscovery {
22
Set-Location -Path $PSScriptRoot
33
$ModuleName = 'Catesta'
44
$PathToManifest = [System.IO.Path]::Combine('..', '..', 'Artifacts', "$ModuleName.psd1")

0 commit comments

Comments
 (0)