Bird
0
0

Which Pester command runs all tests in the current directory and its subdirectories?

easy📝 Conceptual Q2 of 15
PowerShell - Scripting Best Practices
Which Pester command runs all tests in the current directory and its subdirectories?
ATest-Pester
BInvoke-Pester
CRun-PesterTests
DStart-Pester
Step-by-Step Solution
Solution:
  1. Step 1: Identify the standard Pester command

    Invoke-Pester is the built-in command to run Pester tests in the current directory and below.
  2. Step 2: Verify other options

    Other options like Start-Pester, Run-PesterTests, and Test-Pester do not exist as standard commands.
  3. Final Answer:

    Invoke-Pester -> Option B
  4. Quick Check:

    Run tests = Invoke-Pester [OK]
Quick Trick: Use Invoke-Pester to run all tests [OK]
Common Mistakes:
  • Using non-existent commands
  • Confusing with other testing frameworks
  • Trying to run tests without Invoke-Pester

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes