running-tests

Run and profile pytest tests with markers in JAX projects.

Updated May 31, 2020
One-click install
npx skills add https://github.com/xshi19/normix --skill running-tests-xshi19
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: running-tests
Source: https://github.com/xshi19/normix/tree/main/.cursor/skills/running-tests
Command: npx skills add https://github.com/xshi19/normix --skill running-tests-xshi19

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill addresses the need for efficiently running and profiling the test suite in the normix project, helping users manage their testing workflow effectively.

Core Features & Use Cases

  • Test Execution: Run the normix test suite with different markers for specific types of tests.
  • Profiling: Profile tests for performance analysis, including duration measurement and JAX compilation diagnostics.
  • Marker Suites: Use marker expressions to execute subsets of tests, such as only slow, stress, integration, or GPU tests.
  • Quick Start: Use the default suite with a single command to get a fast execution of the test suite without manual filtering.

Quick Start

Execute the default suite of tests with:

uv run pytest tests/

Frequently Asked Questions about running-tests

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a specific subset of pytest tests using markers?

Execute marker-filtered pytest suites by passing specific marker expressions to target slow, stress, integration, or GPU test categories within the JAX-based project environment.

What is the best way to profile pytest performance in a JAX project?

Profile pytest performance by measuring test execution duration and generating JAX compilation diagnostics to identify bottlenecks within the JAX-based project test suite.

Can I run the default test suite quickly without manual filtering?

Yes, you can execute the default test suite quickly without manual filtering by running `uv run pytest tests/` to achieve fast validation of the entire project.

Does this test execution approach support continuous integration workflows?

Yes, this test execution and profiling approach is explicitly designed to support continuous integration and quality assurance processes by automating pytest runs and performance profiling.

What JAX compilation diagnostics are available during test profiling?

Test profiling includes JAX compilation diagnostics and duration measurement to help analyze performance bottlenecks and compilation overhead during the test execution workflow.