Extension library for JUnit 4

Add new [Rules](https://github.com/junit-team/junit4/wiki/Rules) for JUnit4.

Лицензия

Лицензия

Категории

Категории

JUnit Тестирование компонентов
Группа

Группа

name.valery1707.junit
Идентификатор

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

junit4-rule
Последняя версия

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

0.1.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

Extension library for JUnit 4
Add new [Rules](https://github.com/junit-team/junit4/wiki/Rules) for JUnit4.
Ссылка на сайт

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

https://github.com/valery1707/junit4-rule
Система контроля версий

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

https://github.com/valery1707/junit4-rule

Скачать junit4-rule

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

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

Зависимости

compile (3)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12
com.google.code.findbugs : jsr305 Необязательный jar 3.0.2
org.jetbrains : annotations Необязательный jar 16.0.2

test (1)

Идентификатор библиотеки Тип Версия
org.assertj : assertj-core jar 3.10.0

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

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

Maven Central License

codecov Coverage Status Codacy Badge

Build Status Build status Sputnik

DevOps By Rultor.com

Library for JUnit 4 with some useful rules

ConditionalIgnoreRule

Core mechanism for implementing custom conditions for ignore tests.

You can ignore test by custom rule only in 3 steps:

  1. Create class implementing name.valery1707.junit.rule.ConditionalIgnoreRule.IgnoreCondition
  2. Add @org.junit.Rule-annotated field in test class with name.valery1707.junit.rule.ConditionalIgnoreRule
  3. Add annotation name.valery1707.junit.rule.ConditionalIgnoreRule.ConditionalIgnore with condition created at first step

Conditions can be reused by many test methods and ever test classes.

Base implementations of conditionals:

  • BaseEnvironmentCondition - test of environment values by regexp or simple equals

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

Версия
0.1.2