write-tests Skill
Guide for writing unit tests. Use this when creating tests to verify Python logic. Published by microsoft in semantic-link-labs.
What is write-tests Skill?
Guide for writing unit tests. Use this when creating tests to verify Python logic. Published by microsoft in semantic-link-labs. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Testing
- Data analysis
- Writing
- Testing use cases
- Data analysis use cases
Technical details
- Install or run with Copy skill directory
When to use write-tests Skill
- Use it for testing.
- Use it for data analysis.
- Use it for writing.
Built with
Editorial notes
Source
- Creator: microsoft
- Repository: microsoft/semantic-link-labs
- Skill file: .claude/skills/write-tests/SKILL.md
What it does
Guide for writing unit tests. Use this when creating tests to verify Python logic.
Skill instructions
Writing Tests This skill covers how to write tests for the Semantic Link Labs project. When to Use This Skill Use this skill when you need to: - Write tests for new functions - Add test coverage for existing code - Test error handling and edge cases - Validate input parsing and data transformations --- Test Framework | Component | Details | |-----------|---------| | Framework | pytest | | Location | tests/ directory | | Assertions | Standard pytest assertions | --- Test File Structure tests/ ├── init.py ├── testhelperfunctions.py ├── testworkspaces.py ├── testadmin.py └── ... Naming Conventions - Test files: test.py or test.py - Test functions: test<functionname<scenario - Test classes: Test<ClassName --- Writing Basic Tests Simple Function Test python import pytest import pandas as pd def testmyfunctionreturnsdataframe(): """Test that myfunction returns a DataFrame.""" from sempylabs import myfunction result = myfunction() assert isinstance(result, pd.DataFrame) def testmyfunctionhase
Explore related resources
Frequently asked questions
What is write-tests?
write-tests is a open-source AI agent skill with Copy skill directory. Guide for writing unit tests. Use this when creating tests to verify Python logic.
Who is write-tests best for?
write-tests is best for reusing agent instructions, scripts, and references, testing workflows, data analysis workflows, writing workflows.
How do I install write-tests?
Install or run write-tests using Copy skill directory. Check write-tests for the latest setup command.
Is write-tests actively maintained?
write-tests may need a closer maintenance check before production use.
Auto-fetched from GitHub.