What problem does it solve?
This Skill guides developers in creating high-quality unit and integration tests across Python (pytest), TypeScript/JavaScript (Vitest/Jest), and Go, ensuring tests are placed in the correct locations and follow best practices.
Core Features & Use Cases
- Environment Detection: Identifies the project language and testing framework by inspecting files like pyproject.toml, package.json, or go.mod.
- Location Determination: Suggests standard test directories such as Python's tests/ or src/tests/, TS/JS collocated tests, Go *_test.go files, or Java/Kotlin's src/test/java/.
- Test Case Generation: Produces clear AAA-structured tests with descriptive names, and ensures isolation via mocks or fixtures.
- Verification: Encourages running tests to observe RED -> GREEN results as a quality gate.
Quick Start
Use Test Expert to scaffold a basic test for your project. For example, create a Python test file under tests/test_sample.py that asserts a simple function behaves as expected, then run pytest.