You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can run the extensions in the cloud or on-premise
Azure DevOps Service (VSTS)
Version of Extension/Task
10.1.17
Expected behaviour and actual behaviour
I expected all .ps1 files to be used for the codecoverage.xml file but only the ones in the ./tests folder show results.
Steps to reproduce the problem
Set -CodeCoverageFolder . or to the base folder
├───.vscode
├───docs
│ └───images
├───ModuleFolder
│ ├───private
│ └───public
├───TestResults
└───Tests
Thanks, I know why this is happening (can't remember if there's a github issue on the main repo for it) and know how I'll fix it here. I'll add it to my list to look at as soon as I get some time.
I was able to resolve it by creating the [pesterconfiguration] object first and then update the settings along the way. It's on my fork at the moment. If this how you were thinking, I can create a PR for it.
Where are you running it?
You can run the extensions in the cloud or on-premise
Version of Extension/Task
10.1.17
Expected behaviour and actual behaviour
I expected all .ps1 files to be used for the codecoverage.xml file but only the ones in the ./tests folder show results.
Steps to reproduce the problem
Set
-CodeCoverageFolder .
or to the base folder├───.vscode
├───docs
│ └───images
├───ModuleFolder
│ ├───private
│ └───public
├───TestResults
└───Tests
azure-pipelines.yml file:
Findings during testing
$pesterConfig is correct and $pesterconfig.CodeCoverage.Path returns all the files.
However, when the configuration object is created, ([PesterConfiguration]$PesterConfig).CodeCoverage.Path.Value is an empty array.
The text was updated successfully, but these errors were encountered: