dsccommunity / dsccommunity/ComputerManagementDsc
xScheduledTask: Unit Test does not perform correct Test
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 338
- Forks
- 80
- PR merge metrics
- No merged PRs in 30d
Description
Details of the scenario you tried and the problem that is occurring:
The unit test A built-in scheduled task exists and is enabled, but it should be disabled at
https://github.com/PowerShell/xComputerManagement/blob/dev/Tests/Unit/MSFT_xScheduledTask.Tests.ps1#L150
is incorrect. It is testing if the task is enabled, not disabled.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open Tests/Unit/MSFT_xScheduledTask.Tests.ps1 and inspect the test named “A built-in scheduled task exists and is enabled, but it should be disabled” around line 150. Check that the assertion tests the task's disabled state, then run the unit test to confirm it fails or passes for the intended condition.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- testing-qa
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100