当我在IntelliJ中运行TestCase时,为什么JUnit Jupiter和JUnit Vintage分离? [英] Why were JUnit Jupiter and JUnit Vintage separated When I Running TestCase in IntelliJ?

查看:1914
本文介绍了当我在IntelliJ中运行TestCase时,为什么JUnit Jupiter和JUnit Vintage分离?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看到JUnit5已经发布了,我在IntelliJ V2016.2.1中应用并运行了一些测试用例。

I saw that JUnit5 is released, and i applied in IntelliJ V2016.2.1 and run some testcase.

所以见下面的截图。

我只有两个问题。


  1. 当我在IntelliJ中运行TestCase时,为什么JUnit Jupiter和JUnit Vintage分离?

  1. Why were JUnit Jupiter and JUnit Vintage separated When I Running TestCase in IntelliJ?

我可以合并JUnit 4和5 TestResults吗?

Can i Merge JUnit 4 and 5 TestResults?


推荐答案

JUnit 5不仅仅是一个新的API(称为 JUnit Jupiter )。它还包含一个用于运行JUnit测试的工具的抽象层(称为 JUnit Platform )。该平台不了解JUnit 4或Jupiter或其他任何东西。所有它知道的都是测试引擎,它们将执行它们所编写的测试。

JUnit 5 is more than just a new API (called JUnit Jupiter). It also contains an abstraction layer for tools to run JUnit tests (called JUnit Platform). The platform has no knowledge of either JUnit 4 or Jupiter or anything else really. All it knows are test engines, which will execute the tests they were written for.

(你可以在用户指南或我撰写的关于 JUnit 5的架构。)

(You can read more about this in the user guide or a post I wrote about JUnit 5's architecture.)



  1. 当我在IntelliJ中运行TestCase时,为什么JUnit Jupiter和JUnit Vintage分离?


你看到的是执行两个引擎的启动器,一个用于新API( Jupiter ),另一个用于JUnit 4( Vintage )。每个引擎代表它在自己的数据结构中运行的测试,IntelliJ显示为你看到的树。

What you see is the launcher executing two engines, the one for the new API (Jupiter) and the one for JUnit 4 (Vintage). Each engine represents the tests it ran in its own data structure, which IntelliJ shows as the trees you see.



  1. 我可以合并JUnit 4和5 TestResults吗?


这将是必须的是一个IDE功能,据我所知 - 没有实现。

This would have to be an IDE feature, that - as far as I know - is not implemented.

这篇关于当我在IntelliJ中运行TestCase时,为什么JUnit Jupiter和JUnit Vintage分离?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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