Afton

Suppress unit test failures while github/jira issues are open

Лицензия

Лицензия

Категории

Категории

Ant Компиляция и сборка JUnit Тестирование компонентов
Группа

Группа

com.antwerkz.afton
Идентификатор

Идентификатор

afton-junit
Последняя версия

Последняя версия

0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

Afton
Suppress unit test failures while github/jira issues are open
Ссылка на сайт

Ссылка на сайт

https://github.com/evanchooly/afton.git
Система контроля версий

Система контроля версий

https://github.com/evanchooly/afton.git

Скачать afton-junit

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.antwerkz.afton/afton-junit/ -->
<dependency>
    <groupId>com.antwerkz.afton</groupId>
    <artifactId>afton-junit</artifactId>
    <version>0.1</version>
</dependency>
// https://jarcasting.com/artifacts/com.antwerkz.afton/afton-junit/
implementation 'com.antwerkz.afton:afton-junit:0.1'
// https://jarcasting.com/artifacts/com.antwerkz.afton/afton-junit/
implementation ("com.antwerkz.afton:afton-junit:0.1")
'com.antwerkz.afton:afton-junit:jar:0.1'
<dependency org="com.antwerkz.afton" name="afton-junit" rev="0.1">
  <artifact name="afton-junit" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.antwerkz.afton', module='afton-junit', version='0.1')
)
libraryDependencies += "com.antwerkz.afton" % "afton-junit" % "0.1"
[com.antwerkz.afton/afton-junit "0.1"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
com.antwerkz.afton : afton-core jar 0.1
junit : junit jar 4.11

Модули Проекта

Данный проект не имеет модулей.

afton

TestNG and JUnit extensions to suppress test failures so long as the documented jira or github issues are still open.

Why?

When testing against multiple versions of a release, some tests might fail because of upstream bugs in one version but not another. In those case, you still want to be able to write tests that fully exercise your featureset without having to worry overly much about those upstream bugs. This project allows you to write your tests so that you can test against versions you know should work while waiting on the upstream project to fix its bugs. Once those issues are resolved and closed, any subsequent failures in your tests will begin to be reported.

For example, a regression in mongodb 2.5.4 causes a Morphia test to fail against that server but works fine against, say, 2.4.7. Using afton, we can test as if everything is fine while we wait for that regression to be resolved knowing that we're at least always testing against 2.4.7 in the meantime.

JUnit

To ignore tests based on open github issues, mark up your tests like this:

@RunWith(AftonJUnitRunner.class)
public class GitHubTest {
  @Test
  @GitHubIgnore(repository = "evanchooly/afton", issue = 1)
  public void ignoreMe() {
    fail("Forced failure");
  }
}

TestNG

Pending

Jira

To ignore tests based on open jira issues, mark up your tests like this:

@RunWith(AftonJUnitRunner.class)
public class JiraTest {
  @Test
  @JiraIgnore(server = "https://jira.example.com", issue = "DUDE-1")
  public void ignoreMe() {
    fail("Forced failure");
  }
}

Версии библиотеки

Версия
0.1