# junit-check
**Repository Path**: hudl/junit-check
## Basic Information
- **Project Name**: junit-check
- **Description**: Junit单元测试空断言检测插件,在maven构建阶段检测
- **Primary Language**: Unknown
- **License**: Apache-2.0
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2026-06-27
- **Last Updated**: 2026-06-27
## Categories & Tags
**Categories**: Uncategorized
**Tags**: JUnit, Maven
## README
### 空断言检测工具
本插件的原理是将空断言检查加入到maven的构建阶段,当检测到有空断言时,会抛出异常,并终止构建。
### 插件的使用方法
### 1) 修改编译插件的配置,增加执行maven编译时编译单元测试的命令
```
org.apache.maven.plugins
maven-compiler-plugin
3.8.1
17
17
true
default-compile
compile
compile
default-testCompile
compile
testCompile
```
### 2) 在 maven 中引入插件
```
org.apache.junit.maven
JunitCheck
0.3.1
compile
default-check
check
```
### 3) 执行`maven compile`命令