Gradle 编译时跳过测试
Gradle IDEA 大约 362 字命令行
gradle build -x test
或者
gradle build --exclude-task test
IDEA
目前没有找到修改Run Configurations
中的配置完成跳过测试。
在IDEA
中的Gradle
侧边栏里选择:Run Configurations
-项目名[build]
,右击选择Edit Run Configuration...
,在Tasks
中的build
后添加-x test
即可(Tasks
在Configuration
菜单项下)。
修改完后双击Run Configurations
-项目名[build]
即可。
参考
https://docs.gradle.org/current/userguide/java_testing.html#sec:skipping_java_tests
阅读 4740 · 发布于 2020-09-23
————        END        ————
Give me a Star, Thanks:)
https://github.com/fendoudebb扫描下方二维码关注公众号和小程序↓↓↓

昵称:
随便看看
换一批
-
MySQL 聚集索引和非聚集索引阅读 1668
-
GitHub 搜索技巧阅读 1551
-
java.sql.SQLDataException: ORA-01861: literal does not match format string阅读 4022
-
MySQL 之 Windows 免安装版本配置环境阅读 2085
-
Java 并发编程之 ThreadPoolExecutor 线程池源码解析阅读 1549
-
Go 中的指数符号 e阅读 3074
-
Spring OpenFegin 实现微服务间 RPC 调用阅读 917
-
Arthas 使用 watch 命令观察返回值、抛出异常、入参阅读 6512
-
Spring Boot 移除错误页面 /error 节点阅读 398
-
Windows 安装包管理器 choco阅读 2228