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

chore(ci): update tests #234

Merged
merged 1 commit into from
Sep 23, 2023
Merged

chore(ci): update tests #234

merged 1 commit into from
Sep 23, 2023

Conversation

tenthirtyam
Copy link
Collaborator

Summary

  • Updates the basic tests to be generic and discoverable for pull requests.
  • Tests that the module can be imported and that the manifest is well formed.
  • Updated to Pester 5 syntax with detailed output.

Type

  • Bugfix
  • Enhancement or Feature
  • Code Style or Formatting
  • Documentation
  • Refactoring
  • Chore
  • Other
    Please describe:

Breaking Changes?

  • Yes, there are breaking changes.
  • No, there are no breaking changes.

Test and Documentation

  • Tests have been completed.
  • Documentation has been added or updated.

Example:

12s
Run $moduleManifest = (Get-ChildItem -Path $env:GITHUB_WORKSPACE -Filter *.psd1).Name
SUCCESS: Manifest 'tenthirtyam.module.test.psd1' found in '/home/runner/work/tenthirtyam.module.test/tenthirtyam.module.test'.
SUCCESS: Determining module name from manifest'tenthirtyam.module.test.psd1'.
SUCCESS: Module 'tenthirtyam.module.test' was imported.
WARNING: The version '5.5.0' of module 'Pester' is currently in use. Retry the operation after closing the applications.
Pester v5.5.0

Starting discovery in 1 files.
Discovery found 2 tests in 156ms.
Running tests.

Running tests from '/home/runner/work/tenthirtyam.module.test/tenthirtyam.module.test/.ci/pester.tests.ps1'
Describing Module Baseline Validation
  [+] is present 89ms (59ms|30ms)
  [+] passes Test-ModuleManifest 28ms (27ms|1ms)
Tests completed in 531ms
Tests Passed: 2, Failed: 0, Skipped: 0 NotRun: 0

Containers            : {[+] /home/runner/work/tenthirtyam.module.test/tenthirt
                        yam.module.test/.ci/pester.tests.ps1}
Result                : Passed
FailedCount           : 0
FailedBlocksCount     : 0
FailedContainersCount : 0
PassedCount           : 2
SkippedCount          : 0
NotRunCount           : 0
TotalCount            : 2
Duration              : 00:00:00.5309346
Executed              : True
ExecutedAt            : 09/22/2023 16:06:41
Version               : 5.5.0
PSVersion             : 7.2.13
PSBoundParameters     : {[Path, System.String[]], [Output, Detailed], [PassThru
                        , True]}
Plugins               : 
PluginConfiguration   : 
PluginData            : 
Configuration         : PesterConfiguration
DiscoveryDuration     : 00:00:00.1436798
UserDuration          : 00:00:00.0936415
FrameworkDuration     : 00:00:00.2936133
Failed                : {}
FailedBlocks          : {}
FailedContainers      : {}
Passed                : {[+] is present, [+] passes Test-ModuleManifest}
Skipped               : {}
NotRun                : {}
Tests                 : {[+] is present, [+] passes Test-ModuleManifest}
CodeCoverage          : 

Issue References

Additional Information

- Updates the basic tests to be generic and discoverable for pull requests.
- Tests that the module can be imported and that the manifest is well formed.
- Updated to Pester 5 syntax with detailed output.

Signed-off-by: Ryan Johnson <[email protected]>
@tenthirtyam tenthirtyam added chore Chore github-actions GitHub Actions labels Sep 22, 2023
@tenthirtyam tenthirtyam added this to the v2.4.0 milestone Sep 22, 2023
@tenthirtyam tenthirtyam self-assigned this Sep 22, 2023
Copy link
Contributor

@GaryJBlake GaryJBlake left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GaryJBlake GaryJBlake merged commit d54ef12 into develop Sep 23, 2023
@GaryJBlake GaryJBlake deleted the chore(ci)/update-tests branch September 23, 2023 06:25
@github-actions
Copy link

'I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.'

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chore Chore github-actions GitHub Actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants