如何运行所有修改过的 JUnit 测试类? [英] How to run all modified JUnit test classes?

查看:31
本文介绍了如何运行所有修改过的 JUnit 测试类?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 IntelliJ 项目,在 git 中进行了版本控制.

I have an IntelliJ project, versioned in git.

如何运行自上次提交以来修改过的所有 JUnit 测试类?

How can I run all JUnit test classes, that I have modified since my last commit?

推荐答案

项目工具窗口 可以用来查看所有 vcs 更改的文件.从那里选择所有 JUnit 类,然后从上下文菜单中创建 JUnit 运行/调试配置,它将填充类模式以自动运行.

There is Changed Files predefined scope in Project tool window you can use to view all vcs changed files. From there select all JUnit classes and from the context menu create JUnit Run/Debug Configuration which will fill the classes pattern to run automatically.

这篇关于如何运行所有修改过的 JUnit 测试类?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆