dsccommunity / dsccommunity/SqlServerDsc

SqlServerDsc.Common: Add integration test for helper functions

Open
#1,402 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted tests
Dominant language
PowerShell
Stars
385
Forks
224
PR merge metrics
No merged PRs in 30d

Description

I suggest we look at adding integration tests for helper functions that are user throughout the module, like Connect-SQL. I think it would bring more quality to changes to actually test the helper functions as well. Not all, but those that seem necessary.
A change in a helper function for one resource could potentially break another resource, I could be hard to debug. It would also be easier to see all aspects of a change if writing integration tests. 🤔

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating shared helper functions in the SqlServerDsc module, including Connect-SQL, and identifying which resources use them. Review the existing integration-test conventions before selecting the helpers that need coverage. Done means integration tests cover the necessary shared helpers and help detect regressions across resources.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.