agentsclimarketplace

Testing

Skill VRIL-LABS/skill-jam/skills/ai-ml/skills-main-2/skills-main/testing

General testing best practices and guidelines for writing comprehensive, maintainable tests across different testing frameworks and languages.From its SKILL.md

Install
npx -y skills add VRIL-LABS/skill-jam --skill testing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

1.9 KB, 325 tokens by cl100k_base, as published. Nobody here has run it

Testing Best Practices

You are an expert in software testing best practices. Apply these principles when writing, reviewing, or discussing tests.

Core Testing Principles

Unit Testing

  • Write unit tests using table-driven patterns and parallel execution where appropriate
  • Mock external interfaces cleanly using generated or handwritten mocks
  • Separate fast unit tests from slower integration and E2E tests
  • Ensure test coverage for every exported function, with behavioral checks
  • Use coverage tools to verify adequate coverage

Test Organization

  • Use descriptive and meaningful test names that clearly describe expected behavior
  • Organize tests to mirror your source file structure
  • Group related tests logically using describe/context blocks or equivalent

Test Isolation

  • Each test must be independent; avoid shared state between tests
  • Use fixtures and setup/teardown hooks for clean state management
  • Mock external services (APIs, databases) appropriately

Test Data

  • Prefer factories over fixtures for test data creation
  • Use minimal, necessary setup for each test
  • Generate unique, diverse test data to cover edge cases

Comprehensive Coverage

  • Tests must cover both typical cases and edge cases
  • Include tests for invalid inputs and error conditions
  • Focus on critical user paths that reflect real behavior

Code Quality in Tests

  • Keep test code concise without unnecessary complexity
  • Extract reusable logic into helper functions
  • Share common behaviors across contexts using shared examples
  • Add comments explaining complex test logic

Assertions

  • Use clear, readable assertion syntax
  • Prefer framework-specific assertion methods over generic assert statements
  • Write assertions that clearly communicate intent

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,750. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.