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

Running pester tests from within VSCode using run tests fails with error of no module loaded #92

Closed
techthoughts2 opened this issue Aug 14, 2024 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@techthoughts2
Copy link
Owner

Expected Behavior

Sample tests generated by Catesta should be able to be run using Run tests | Debug tests from within VSCode.

Current Behavior

Sample tests generated by Catesta fail when run using Run tests | Debug tests from within VSCode with the following error:

System.Management.Automation.RuntimeException: No modules named 'GHATest' are currently loaded.

image

Possible Solution

Recent Pester 5 changes in #91 likely introduced a regression with the move of scaffolding to BeforeAll block.

Steps to Reproduce

  1. Create a new module with Catesta
  2. Try to run sample pester tests from within VSCode using Run tests | Debug tests
@techthoughts2 techthoughts2 added the bug Something isn't working label Aug 14, 2024
@techthoughts2 techthoughts2 self-assigned this Aug 14, 2024
@techthoughts2 techthoughts2 changed the title Catesta bug issue Running pester tests from within VScode using run tests fails with error of no module loaded Aug 14, 2024
@techthoughts2 techthoughts2 changed the title Running pester tests from within VScode using run tests fails with error of no module loaded Running pester tests from within VSCode using run tests fails with error of no module loaded Aug 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant