Skip to content

Commit 193df81

Browse files
committed
Increase code coverage
1 parent 0510ec6 commit 193df81

File tree

214 files changed

+18069
-7441
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

214 files changed

+18069
-7441
lines changed

build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Pester:
103103
# - FunctionalQuality
104104
# - TestQuality
105105
Tag:
106-
CodeCoverageThreshold: 0.10 # 85 # Set to 0 to bypass
106+
CodeCoverageThreshold: 50 # 85 # Set to 0 to bypass
107107
#CodeCoverageOutputFile: JaCoCo_$OsShortName.xml
108108
#CodeCoverageOutputFileEncoding: ascii
109109
# Use this if code coverage should be merged from several pipeline test jobs.

source/Public/Domain/Get-FabricDomainWorkspace.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Author: Tiago Balabuch
6666

6767
} catch {
6868
# Step 7: Capture and log error details
69-
$errorDetails = Get-ErrorResponse($_.Exception)
69+
$errorDetails = $_.Exception.Message
7070
Write-Message -Message "Failed to retrieve domain workspaces. Error: $errorDetails" -Level Error
7171
}
7272
}

source/Public/Item/Export-FabricItem.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,13 @@ https://github.com/microsoft/Analysis-Services/tree/master/pbidevmode/fabricps-p
4545
param
4646
(
4747
[string]$path = '.\pbipOutput',
48-
[guid]$WorkspaceId = '',
48+
[Parameter(Mandatory = $false)]
49+
[guid]$WorkspaceId,
4950
[scriptblock]$filter = { $_.type -in @("Report", "SemanticModel", "Notebook", "SparkJobDefinitionV1") },
50-
[guid]$itemID = $null
51+
[Parameter(Mandatory = $false)]
52+
[guid]$itemID
5153
)
52-
if (-not $itemID) {
54+
if ($PSBoundParameters.ContainsKey('itemID')) {
5355
# Invoke the Fabric API to get the specific item in the workspace
5456

5557
$item = Invoke-FabricRestMethod -Uri "workspaces/$workspaceId/items/$itemID/getDefinition" -Method POST

0 commit comments

Comments
 (0)