Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pester V5 test results does not display details of the executed tests #130

Open
emloghin opened this issue Nov 23, 2023 · 1 comment
Open
Labels
needs more information The issue needs more information from the author or the community.

Comments

@emloghin
Copy link

When using Sampler build configuration with Output: Detailed it only displays a summary of the executed tests instead of the individual tests that are executed:
Screenshot 2023-11-23 134054

Below see the build.yml config:
image

@johlju
Copy link
Member

johlju commented Nov 24, 2023

Are you running using the task Invoke_HQRM_Tests? Your build.yaml should include te task Invoke_HQRM_Tests_Stop_On_Fail which runs Invoke_HQRM_Tests and Fail_Build_If_HQRM_Tests_Failed, all tasks from this module.

The older task DscResource_Tests_Stop_On_Fail (part of Sampler) is only meant to be used with the older v4 tests.

See documentation https://github.com/dsccommunity/DscResource.Test#tasks

Example from SqlServerDsc:

Running tests from 'D:\a\1\s\output\RequiredModules\DscResource.Test\0.16.2\Tests\QA\MarkdownLinks.common.v5.Tests.ps1'
Describing Common Tests - Validate Markdown Links
 Context When markdown file 'CHANGELOG.md' exist
   [+] Should not contain any broken links 525ms (520ms|5ms)
 Context When markdown file 'CODE_OF_CONDUCT.md' exist
   [+] Should not contain any broken links 21ms (16ms|5ms)
 Context When markdown file 'CONTRIBUTING.md' exist
   [+] Should not contain any broken links 37ms (35ms|3ms)
 Context When markdown file 'README.md' exist
   [+] Should not contain any broken links 18ms (15ms|3ms)
 Context When markdown file 'SECURITY.md' exist
   [+] Should not contain any broken links 8ms (5ms|3ms)

@johlju johlju added the needs more information The issue needs more information from the author or the community. label Nov 24, 2023
@johlju johlju changed the title Pester V5 test results does not display details of the executed tests. Pester V5 test results does not display details of the executed tests Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more information The issue needs more information from the author or the community.
Projects
None yet
Development

No branches or pull requests

2 participants