aslakknutsen/arquillian-volkswagen

语言: Java

git: https://github.com/aslakknutsen/arquillian-volkswagen

生病了红色失败的测试?随着大众汽车的扩展,你只会看到绿色!
Sick of red failing tests? With the Volkswagen extension you will only see green!
README.md (中文)

== Arquillian Volkswagen

让任何测试套件在一秒钟内变绿!总是!

===用法

只需将以下内容添加到您的Maven pom中,再也不用担心令人讨厌的红色测试失败!

[来源,xml]

org.arquillian.extension 的Arquillian大众 1.0.0.Final-快照 测试


===示例

[来源,java]

@Test
public void shouldBeFalse() {
    Assert.assertFalse(true);
}

@Test
public void shouldNotFail() {
    Assert.fail("No way!");
}

@Test @RunAsClient
public void shouldBeFalseClient() {
    Assert.assertFalse(true);
}

@Test @RunAsClient
public void shouldNotFailClient() {
    Assert.fail("No way!");
}

[来源,控制台]


T E S T S.

运行org.arquillian.extension.volkswagen.ExtremeFailingTestCase 测试运行:4,失败:0,错误:0,跳过:0,经过的时间:6.736秒 - 在org.arquillian.extension.volkswagen.ExtremeFailingTestCase

结果:

测试运行:4,失败:0,错误:0,跳过:0

[INFO] ----------------------------------------------- ------------------------- [信息]建立成功 [INFO] ----------------------------------------------- ------------------------- [INFO]总时间:9.353秒 [INFO]完成时间:2015-10-08T17:06:32 + 02:00 [INFO]最终记忆:23M / 249M [INFO] ----------------------------------------------- -------------------------


本文使用googletrans自动翻译,仅供参考, 原文来自github.com

en_README.md

== Arquillian Volkswagen

Make any test suite fly green in a second! Always!

=== Usage

Simply add the following to your Maven pom and never worry about nasty red test failures again!

[source, xml]


org.arquillian.extension
arquillian-volkswagen
1.0.0.Final-SNAPSHOT
test


=== Example

[source, java]

@Test
public void shouldBeFalse() {
    Assert.assertFalse(true);
}

@Test
public void shouldNotFail() {
    Assert.fail("No way!");
}

@Test @RunAsClient
public void shouldBeFalseClient() {
    Assert.assertFalse(true);
}

@Test @RunAsClient
public void shouldNotFailClient() {
    Assert.fail("No way!");
}

[source, console]


T E S T S

Running org.arquillian.extension.volkswagen.ExtremeFailingTestCase
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 6.736 sec - in org.arquillian.extension.volkswagen.ExtremeFailingTestCase

Results :

Tests run: 4, Failures: 0, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.353 s
[INFO] Finished at: 2015-10-08T17:06:32+02:00
[INFO] Final Memory: 23M/249M
[INFO] ------------------------------------------------------------------------