Skip to content

Commit

Permalink
Merge pull request #88 from navferty/fix-ci-pipeline-testFiltercriteria
Browse files Browse the repository at this point in the history
fix testFiltercriteria in CI pipelines (exclude Automation tests by TestCategory)
  • Loading branch information
navferty authored Jul 4, 2021
2 parents 8b0f10a + 9b743a4 commit 05e59b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ public void Initialize()
}

[TestMethod]
// ignored in azure-pipelines-CI.yml by name
// ignored in azure-pipelines-CI.yml by TestCategory 'Automation'
[TestCategory("Automation")]
public void UnprotectWorkbookAndWorksheet_CanEditAndAddWorksheet()
{
var dialogService = new Mock<IDialogService>(MockBehavior.Loose);
Expand Down
4 changes: 2 additions & 2 deletions azure-pipelines-CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ steps:
# manually collecting coverage in next task
codeCoverageEnabled: false
# tests depending on Interop.Excel - run locally
testFiltercriteria: 'Name!=UnprotectWorkbookAndWorksheet_CanEditAndAddWorksheet
&Name!=UnprotectWorkbookAndWorksheet_CanEditAndAddWorksheet' # more tests
# https://github.com/microsoft/vstest-docs/blob/master/docs/filter.md
testFiltercriteria: 'TestCategory!=Automation'

- task: PowerShell@2
name: 'CollectCodeCoverage'
Expand Down

0 comments on commit 05e59b2

Please sign in to comment.