backend-testing
Comprehensive backend testing for REST APIs, databases, authentication, and business logic across Jest, Pytest, and Mocha.
- Covers unit tests for isolated functions, integration tests for API endpoints, and authentication/authorization flows with detailed examples for Express.js, FastAPI, and other frameworks
- Includes test environment setup, mocking strategies for external dependencies, and database isolation patterns using in-memory or separate test databases
- Provides step-by-step guidance on AAA pattern (Arrange-Act-Assert), test fixtures, and role-based access control testing with JWT tokens
- Enforces test isolation, clear naming conventions, and coverage thresholds (default 80%) to prevent shared state issues and ensure reliable test execution
Backend Testing
When to use this skill
Specific situations that should trigger this skill:
- New feature development: Write tests first using TDD (Test-Driven Development)
- Adding API endpoints: Test success and failure cases for REST APIs
- Bug fixes: Add tests to prevent regressions
- Before refactoring: Write tests that guarantee existing behavior
- CI/CD setup: Build automated test pipelines
Input Format
Format and required/optional information to collect from the user:
Required information
More from supercent-io/skills-template
security-best-practices
Implement security best practices for web applications and infrastructure. Use when securing APIs, preventing common vulnerabilities, or implementing security policies. Handles HTTPS, CORS, XSS, SQL Injection, CSRF, rate limiting, and OWASP Top 10.
14.1Kdata-analysis
Analyze datasets to extract insights, identify patterns, and generate reports. Use when exploring data, creating visualizations, or performing statistical analysis. Handles CSV, JSON, SQL queries, and Python pandas operations.
13.8Kweb-accessibility
Implement web accessibility (a11y) standards following WCAG 2.1 guidelines. Use when building accessible UIs, fixing accessibility issues, or ensuring compliance with disability standards. Handles ARIA attributes, keyboard navigation, screen readers, semantic HTML, and accessibility testing.
12.7Kworkflow-automation
Automate repetitive development tasks and workflows. Use when creating build scripts, automating deployments, or setting up development workflows. Handles npm scripts, Makefile, GitHub Actions workflows, and task automation.
12.6Kcode-review
Conduct thorough, constructive code reviews for quality and security. Use when reviewing pull requests, checking code quality, identifying bugs, or auditing security. Handles best practices, SOLID principles, security vulnerabilities, performance analysis, and testing coverage.
12.5Kdatabase-schema-design
Design and optimize database schemas for SQL and NoSQL databases. Use when creating new databases, designing tables, defining relationships, indexing strategies, or database migrations. Handles PostgreSQL, MySQL, MongoDB, normalization, and performance optimization.
12.2K