Skip to content

Commit

Permalink
Finally releasing 4.0.7!
Browse files Browse the repository at this point in the history
  • Loading branch information
nohwnd committed Sep 13, 2017
1 parent a146dd2 commit f4be71c
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 9 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
## 4.0.7 (September 13,2017)
- Use https in manifest and link to release notes [GH-871]
- Make commands singular [GH-860]
- Update help of Gherkin-related functions [GH-861]
- Rename Contain assertions to FileContentMatch [GH-859]
- Remove CommandUsed parameter from Describe [GH-858]
- Add new readme [GH-837]
- Add CodeCoverageOutputFileFormat parameter [GH-850]
- Update help for New-PesterOption [GH-847]
- Extend style rules to psd1 files [GH-842]
- Update help of New-MockObject and Context [GH-841]
- Update help of Invoke-Gherking [GH-839]
- Fix exception propagating outside of describe/context when AfterAll fails [GH-836]
- Fix foreground for inconclusive tests results [GH-829]

## 4.0.6-rc (August 17, 2017)
- Add limit for cyclic arrays on Should -Be [GH-824]
- Fix infinite recursion on Should -Be [GH-818]
Expand Down
18 changes: 11 additions & 7 deletions Pester.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ $changeLogPath = (Join-Path $here 'CHANGELOG.md')
Describe -Tags 'VersionChecks' "Pester manifest and changelog" {
$script:manifest = $null
$script:tagVersion = $null
$script:tagVersionShort = $null
$script:changelogVersion = $null
$script:changelogVersionShort = $null

It "has a valid manifest" {
{
Expand All @@ -33,15 +35,11 @@ Describe -Tags 'VersionChecks' "Pester manifest and changelog" {
if ($thisCommit -match 'tag:\s*(\d+(?:\.\d+)*)')
{
$script:tagVersion = $matches[1]
$script:tagVersionShort = $script:tagVersion -replace "-.*$", ''
}

$script:tagVersion | Should Not BeNullOrEmpty
$script:tagVersion -as [Version] | Should Not BeNullOrEmpty
}

It "all versions are the same" -skip:$skipVersionTest {
$script:changelogVersion -as [Version] | Should -Be ( $script:manifest.Version -as [Version] )
$script:manifest.Version -as [Version] | Should -Be (($script:tagVersion -replace "-.*$", '') -as [Version] )
$script:tagVersionShort -as [Version] | Should Not BeNullOrEmpty
}
}

Expand All @@ -56,16 +54,22 @@ Describe -Tags 'VersionChecks' "Pester manifest and changelog" {
if ($line -match "^\s*##\s+(?<Version>.*?)\s")
{
$script:changelogVersion = $matches.Version
$script:changelogVersionShort = $script:changelogVersion -replace "-.*$", ''
break
}
}
$script:changelogVersion | Should Not BeNullOrEmpty
($script:changelogVersion -replace "-.*$", '') -as [Version] | Should Not BeNullOrEmpty
$script:changelogVersionShort -as [Version] | Should Not BeNullOrEmpty
}

It "tag and changelog versions are the same" {
$script:changelogVersion | Should -Be $script:tagVersion
}

It "all versions are the same" -skip:$skipVersionTest {
$script:changelogVersionShort -as [Version] | Should -Be ( $script:manifest.Version -as [Version] )
$script:manifest.Version -as [Version] | Should -Be ( $script:tagVersionShort -as [Version] )
}
}

if ($PSVersionTable.PSVersion.Major -ge 3)
Expand Down
4 changes: 2 additions & 2 deletions Pester.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
ModuleToProcess = 'Pester.psm1'

# Version number of this module.
ModuleVersion = '4.0.6'
ModuleVersion = '4.0.7'

# ID used to uniquely identify this module
GUID = 'a699dea5-2c73-4616-a270-1f7abb777e71'
Expand Down Expand Up @@ -121,7 +121,7 @@ PrivateData = @{
LicenseUri = "https://www.apache.org/licenses/LICENSE-2.0.html"

# Release notes for this particular version of the module
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/4.0.6-rc'
ReleaseNotes = 'https://github.com/pester/Pester/releases/tag/4.0.7'

# If true, the LicenseUrl points to an end-user license (not just a source license) which requires the user agreement before use.
# RequireLicenseAcceptance = ""
Expand Down

0 comments on commit f4be71c

Please sign in to comment.