Testland
Browse all skills & agents

qa-unit-tests-go-rust

Go + Rust unit testing per-framework wrappers: 5 skills (cargo-test, ginkgo-tests, go-rust-mocking, go-test, rstest-tests) and 2 agents (go-rust-framework-selector, go-rust-test-author).

Install this plugin

/plugin install qa-unit-tests-go-rust@testland-qa
View source

Part of role bundle: qa-role-sdet

qa-unit-tests-go-rust

Go + Rust unit testing in two umbrella skills - one per language, each centered on the stdlib harness with the community frameworks and mocking libraries as bundled references. Combined plugin since each language has a small test surface (stdlib + 1 community library).

Per-framework lifecycle scope. Does not duplicate qa-test-review (test code hygiene).

Components

TypeNameDescription
Skillgo-unit-testsGo stdlib testing: table-driven idiom with t.Run subtests, benchmarks, native fuzzing, coverage, -race CI, and framework choice (stdlib default, Ginkgo if k8s-ecosystem); references cover Ginkgo + Gomega and Go mocking (gomock, testify/mock)
Skillrust-unit-testsRust cargo test: #[test] / should_panic / Result returns, integration + doc tests, cargo-llvm-cov coverage, Criterion benchmarks, and framework choice (stdlib default, rstest for parameterized cases); references cover rstest and mockall

Install

/plugin marketplace add testland/qa
/plugin install qa-unit-tests-go-rust@testland-qa

Skills

go-unit-tests

Go unit testing with the stdlib `testing` package - `func TestXxx(t *testing.T)` convention, the table-driven idiom with `t.Run` subtests, `t.Parallel()`, benchmarks (`BenchmarkXxx` + benchstat), examples (`ExampleXxx`), native fuzzing (`FuzzXxx`, Go 1.18+), coverage (`-cover` / `-coverprofile` + threshold gating), build tags, `t.Helper()` / `t.Cleanup`, and `-race` CI. Includes framework choice (stdlib `testing` is the idiomatic default; Ginkgo BDD for Kubernetes-ecosystem projects via references) and test-authoring conventions (framework detection from go.sum + existing suite files, `_test.go` placement, `t.Errorf` vs `t.Fatalf`). References cover Ginkgo + Gomega and Go mocking (gomock, testify/mock). Use for any Go unit-test task: writing table-driven tests, benchmarks, fuzz targets, coverage gates, or CI wiring.

rust-unit-tests

Rust unit testing with the built-in `cargo test` harness - `#[test]` in `#[cfg(test)] mod tests` blocks, `assert_eq!` / `assert_ne!` / `assert!` macros, `#[should_panic(expected)]`, `Result<(), E>` test returns, integration tests in `tests/`, doc tests in `///` comments, runner flags (`--test-threads=1`, `--nocapture`, `--ignored`), `#[ignore]` marking, coverage via cargo-llvm-cov / tarpaulin, and Criterion benchmarks on stable. Includes framework choice (stdlib `#[test]` is the default; rstest for 4+ parameterized case pairs or shared fixtures via references) and test-authoring conventions (inline `#[cfg(test)]` placement, assertion-macro selection, async runtime requirements). References cover rstest parametrize + fixtures and Rust mocking with mockall (`#[automock]` / `mock!`). Use for any Rust unit-test task: writing tests, testing panics or Results, doc tests, coverage gates, benchmarks, or CI wiring.