microsoft/sqltoolsservice/setup-integration-test-config
Claude Code and agent skill by microsoft/sqltoolsservice
- vendor
Checking that the SKILL.md file is still in the repository.
Create SQL Tools Service integration test connection settings by generating SQLConnectionInstances XML, then running Microsoft.SqlTools.ServiceLayer.TestEnvConfig to write sqlConnectionSettings.json in the user profile. Use when: setting up local integration tests, configuring SQL test credentials, preparing SQLConnectionInstances xml, generating sqlConnectionSettings.json, or setting up test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig.
Install
npx vskill@latest install microsoft/sqltoolsservice/setup-integration-test-configSKILL.md
The same SKILL.md was published earlier as microsoft/sqltoolsservice/setup-integration-test-config.
Setup integration test config
Set up local integration-test connection settings for SQL Tools Service by:
- Preparing an XML file with connection/auth info for required test instances.
- Running the
Microsoft.SqlTools.ServiceLayer.TestEnvConfigproject with that XML. - Producing
sqlConnectionSettings.jsonat the user profile root and storing SQL passwords in credential storage.
When to use
- User asks to set up integration test connection config.
- User needs
sqlConnectionSettings.jsonfor integration tests. - User mentions
SQLConnectionInstancesTemplate.xmlorTestEnvConfig.
Ground truth in repo
This workflow is implemented and exercised in:
test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/Program.cstest/Microsoft.SqlTools.ServiceLayer.Test.Common/TestConfigPersistenceHelper.cs.github/workflows/integration-tests.ymlandazure-pipelines/integration-tests.yml
Key behavior:
- XML instances are read from the file passed to
TestEnvConfig. - Each
<Instance>must includeVersionKeyandDataSource. UserIdandPasswordare optional.- If environment variable
<VersionKey>_passwordexists, it overrides<Password>from XML. - Output is written to user root as
sqlConnectionSettings.json. - Passwords are removed from JSON and stored via test credential storage.
Required interaction with user
Always ask this first:
- Do you already have credentials you want to use?
- Or do you want me to provide T-SQL to create a test login/user on your test server?
If they already have credentials:
- Ask for server host, auth type, username (if SQL auth), and whether they want one server for both
sqlOnPremandsqlAzureor separate servers. - Ask if the user wants to enter a local-only test password via chat, or if it's a real password that needs to be entered by them manually in the XML.
If they want T-SQL:
- Provide SQL to create a login/user suitable for integration tests.
- Then continue with XML setup using that login.
T-SQL template
Use this when user asks for SQL to create credentials. Replace placeholders first.
XML template
Create a local file (for example test/Microsoft.SqlTools.ServiceLayer.TestEnvConfig/SQLConnectionInstances.local.xml):
Notes:
- Keep
VersionKeyvalues assqlOnPremandsqlAzureunless tests are explicitly changed. - For integrated auth, omit
UserIdandPassword. - Prefer env vars (
sqlOnPrem_password,sqlAzure_password) over plaintext passwords.
Generate the integration test settings
From repo root (all platforms):
Optional password override via env vars (recommended):
PowerShell:
bash/zsh:
Verification
- Confirm command prints completion message.
- Confirm profile-root file exists:
- Windows:
$env:USERPROFILE/sqlConnectionSettings.json - Linux/macOS:
$HOME/sqlConnectionSettings.json - Confirm generated JSON has connection entries and no plaintext password fields.
Common pitfalls
- Missing
VersionKeyon an<Instance>. - Using wrong env var names (must match
<VersionKey>_password). - Assuming password stays in JSON (it is intentionally removed and stored in credential storage).
- Forgetting to pass the XML path argument when running
TestEnvConfig.
Expected assistant behavior
- Ask the credentials-vs-T-SQL question first.
- If credentials path is chosen, gather non-secret values and generate XML.
- If T-SQL path is chosen, provide SQL first, then proceed to XML.
- Run
dotnet run ... TestEnvConfig.csproj -- <xml path>. - Report resulting
sqlConnectionSettings.jsonpath and what was generated.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 15 Aug 2026.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/setup-integration-test-config/SKILL.md
Popularity
- Repository stars
- 505
- Repository forks
- 167
- 7-day trend score
- 31
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 7 Oct 2026, a month ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/microsoft/sqltoolsservice/setup-integration-test-config)