首页/ AI 技能 / @skilllib/skill-2117939930272412145
Skill站外收录 @skilllib/skill-2117939930272412145

mvnf

为 rdf4j 多模块项目提供标准化的 Maven 测试执行能力,支持按模块清理构建、快速刷新本地仓库、运行单元或集成测试,并在失败时自动定位报告文件,提升测试调试效率。

0.0 (0) 12 次安装 原作者 编程导航
收录于 2026-01-22
测试与安全 AI 技能

Skills.MD

# mvnf Run Maven tests with repeatable commands and useful failure pointers. ## Quick start - Run a module's full test suite: - `python3 .codex/skills/mvnf/scripts/mvnf.py core/sail/shacl` - Run a unit test class or method (module auto-detected): - `python3 .codex/skills/mvnf/scripts/mvnf.py ShaclSailTest` - `python3 .codex/skills/mvnf/scripts/mvnf.py ShaclSailTest#testSomething` - Run an integration test (Failsafe): - `python3 .codex/skills/mvnf/scripts/mvnf.py --it ShaclSailIT#testSomething` ## What it does 1. `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> clean` 2. `mvn -T 1C -o -Dmaven.repo.local=.m2_repo -Pquick clean install` 3. `mvn -o -Dmaven.repo.local=.m2_repo -pl <module> verify` (optionally with `-Dtest=` / `-Dit.test=`) If the test run fails, it prints the list of Surefire/Failsafe report files under the module's `target/*-reports/` directories. ## Options - `--module <path>`: Force the module when the test class name exists in multiple modules. - `--it`: Treat the selector as an integration test and pass it via `-Dit.test=...`. - `--no-offline`: Run Maven commands without `-o` (useful if offline resolution fails).

评论 0

还没有评论,来抢沙发。