Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Commit

Permalink
[wip] add Get-GitInfo tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OCram85 committed Jan 22, 2019
1 parent 003feea commit dfa87a1
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tests/02_Get-GitInfo.Tests.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$RepoRoot = (Get-Item -Path (Get-GitDirectory) -Force).Parent | Select-Object -ExpandProperty 'FullName'
Write-Verbose -Message ('RepoRoot: {0}' -f $RepoRoot) -Verbose

Describe 'Get-GitInfo' {
Context 'Basic Tests' {

Import-Module (Join-Path -Path $RepoRoot -ChildPath '/src/PSCoverage.psm1') -Force

It 'Should not throw' {
{ Get-GitInfo } | Should -Not -Throw
}

It 'Should work as Appveyor job' {
$res = { Get-GitInfo } | Should -Not -Throw
$res
}
}
}

0 comments on commit dfa87a1

Please sign in to comment.