Skip to content

Commit

Permalink
not sure hwy it fails for that variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SQLDBAWithABeard committed Mar 4, 2023
1 parent b04b705 commit fa94622
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions source/functions/Convert-DbcResult.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ Initial - RMS 28/12/2019
#>
function Convert-DbcResult {
[OutputType([System.Data.DataTable])]
[Diagnostics.CodeAnalysis.SuppressMessageAttribute('PSReviewUnusedParameter', '', Justification = 'Because I dont know why it doesnt know about Label')]
Param(
# The pester results object
[Parameter(Mandatory = $true, ValueFromPipeline = $true)]
Expand Down Expand Up @@ -91,11 +92,6 @@ function Convert-DbcResult {
$Database = $null
}
$Date = Get-Date
if ($Label) {

} else {
$Label = 'NoLabel'
}
# Create a new Row
$row = $table.NewRow()
# Add values to new row
Expand All @@ -117,7 +113,7 @@ function Convert-DbcResult {
$Results.Tests.Where{ $Psitem.Result -ne 'NotRun' }.ForEach{
$TestResult = $Psitem
switch ($TestResult.Result) {
'skipped' {
'skipped' {
$PathSplit = $TestResult.ExpandedPath.split('.')
$Describe = $PathSplit[0]
$Context = $PathSplit[1]
Expand Down

0 comments on commit fa94622

Please sign in to comment.