testing
Skill64 starsChanged 7 months agoApache-2.0View on GitHub
Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.
123 other projects use a version of this.
Adopted by
Most recently taken up by
- timmo001/skillstheir own version, first seen Oct 5, 2026
- kortix-ai/sunatheir own version, first seen Oct 5, 2026
- gilsmt/skillstheir own version, first seen Oct 4, 2026
- andeeplus/aplustheir own version, first seen Oct 4, 2026
- JetBrains/intellij-communitytheir own version, first seen Oct 3, 2026
- shinpr/codex-workflowstheir own version, first seen Oct 2, 2026
Used with
Projects with it also use oss-pr, pr-automation and 10 more.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
CES-LtdSkilloss-pr
Use when creating a pull request, after committing changes, or when user invokes /oss-pr. Covers branch management, quality checks, commit, push, and PR creation.
Also in 3 projects that use this
CES-LtdSkillpr-automation
PR Automation Orchestrator: poll open PRs, check CI, run review, fix, and merge eligible PRs. Use when: (1) Invoked by daemon via scripts/pr-automation.sh, (2) User says "/pr-automation".
Also in 3 projects that use this
ffsshhttiikkSkillcicd
Continuous integration and delivery pipelines
Also in 4 projects that use this
ffsshhttiikkSkillnetworking
Practical application and coding skills for Networking
Also in 3 projects that use this
JohnJBorenSkillci-cd
CI/CD pipeline design, GitHub Actions, testing automation, and deployment strategies
Also in 9 projects that use this
Cogni-AI-OUSkilldotfiles
Reference for repository dotfiles, including their purposes, standard configurations, and usage guidelines. You MUST load this skill when configuring, troubleshooting, or understanding repository dotfiles.
Also in 3 projects that use this
- +2 more from CES-Ltd
- +1 more from ffsshhttiikk
Other versions123 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 123
- lobehub/lobehub★ 83ksame name
- iOfficeAI/AionUi★ 33ksame name
- JetBrains/intellij-community★ 21ksame name
- kortix-ai/suna★ 20ksame name
- modelcontextprotocol/inspector★ 11ksame name
- microsoft/fast★ 9.7ksame name
- bytebase/dbhub★ 3.6ksame name
- theopenco/llmgateway★ 1.7ksame name
- BankrBot/skills★ 1.2ksame name
- microsoft/CCF★ 875same name
113 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository5 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- add-filterSkill
- add-sinkSkill
- add-sourceSkill
- curator-reviewerSkill
The file
We split this skill into the rules it gives an agent
1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.
0
Common
Most of the 105 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Ensure dev dependencies are installed:
“Common” is measured: kept by at least 6 in 10 of the 105 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Testing Skill
Prerequisites
Ensure dev dependencies are installed:
make install # or: uv sync --group dev
make develop # build native Rust extension: uv run maturin developPython Tests
Run the full test suite with coverage
uv run pytest test/ --cov --cov-report=term-missingOr use the Makefile shortcut:
make testRun a single test file
uv run pytest test/test_example.py -vRun a single test function
uv run pytest test/test_example.py::test_my_function -vUseful pytest flags
| Flag | Purpose |
-v | Verbose output |
-x | Stop on first failure |
-k "expression" | Run tests matching expression |
-m "not slow" | Skip tests marked as slow |
--tb=long | Full tracebacks |
--pdb | Drop into debugger on failure |
-n auto | Parallel execution (requires pytest-xdist) |
Coverage reports
# Terminal report with missing lines (default in make test)
uv run pytest test/ --cov --cov-report=term-missing
# HTML report (opens in browser)
uv run pytest test/ --cov --cov-report=html
# Output: htmlcov/index.html
# XML report (for CI integration)
uv run pytest test/ --cov --cov-report=xml
# Output: coverage.xml
# Combined reports
uv run pytest test/ --cov --cov-report=term-missing --cov-report=html --cov-report=xmlCoverage configuration is in pyproject.toml under [tool.coverage.run] and
[tool.coverage.report]. The minimum coverage threshold is set to 80%.
Python benchmarks
# Run benchmarks only
uv run pytest test/ --benchmark-only
# Run benchmarks with comparison
uv run pytest test/ --benchmark-compare
# Skip benchmarks during normal test runs
uv run pytest test/ --benchmark-skipBenchmark tests should be marked with @pytest.mark.benchmark and use the
benchmark fixture from pytest-benchmark.
Rust Tests
Run Rust tests with nextest
cargo nextest run --manifest-path src/rust/Cargo.tomlOr use the Makefile shortcut:
make test-rustRun specific Rust tests
cargo nextest run --manifest-path src/rust/Cargo.toml -E "test(parse)"Rust benchmarks (criterion)
cargo bench --manifest-path src/rust/Cargo.tomlBenchmark results are saved to src/rust/target/criterion/. HTML reports are
generated when the html_reports feature is enabled.
Run everything
make bench # Python benchmarks + Rust benchmarks
make check # format-check + lint-check + typecheck + interrogate + denyASV Historical Benchmarks
ASV (airspeed velocity) tracks performance across the project's git history, producing an interactive web dashboard.
Configuration
ASV is configured in asv.conf.json at the project root. Benchmarks live in
benchmarks/ (separate from the pytest test suite in test/). All ASV
artifacts (environments, results, HTML) are stored under .asv/ and gitignored.
Running ASV benchmarks
# Benchmark the current commit
make asv-run
# Equivalent to: uv run asv run --quick HEAD^!
# Dry-run (smoke test, no results saved)
make asv-quick
# Benchmark a range of commits
uv run asv run v0.1.0..HEAD
# Compare two revisions
make asv-compare REF1=main REF2=HEAD
# Equivalent to: uv run asv compare main HEAD
# Find the commit that introduced a regression
uv run asv find v0.1.0..HEAD TimePipelineIteration.time_iterate_all
# Show results for a specific commit
uv run asv show HEADPublishing the dashboard
# Build static HTML dashboard
make asv-publish
# Output: .asv/html/
# Preview locally
make asv-preview
# Push to GitHub Pages
uv run asv gh-pagesWriting ASV benchmarks
ASV benchmarks use magic name prefixes:
| Prefix | Measures |
time_ | Wall-clock execution time |
mem_ | Memory footprint of returned object |
peakmem_ | Peak resident memory |
track_ | Arbitrary numeric value |
timeraw_ | Execution time in a fresh subprocess |
Benchmarks support setup(), teardown(), setup_cache() lifecycle methods
and parameterization via params / param_names class attributes.
See benchmarks/bench_pipeline.py for working examples.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

