Test filter


License

License

Categories

Categories

JUnit Unit Testing
GroupId

GroupId

com.github.varivoda
ArtifactId

ArtifactId

test_filter_junit4
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

jar
Description

Description

Test filter
Test filter
Project URL

Project URL

https://github.com/varivoda/test_filter
Source Code Management

Source Code Management

https://github.com/varivoda/test_filter

Download test_filter_junit4

How to add to project

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

Dependencies

runtime (4)

Group / Artifact Type Version
com.github.varivoda : test_filter_calculator jar 1.0
com.github.varivoda : test_filter_adaptor jar 1.0
junit : junit jar 4.13.2
com.googlecode.junit-toolbox : junit-toolbox jar 2.4

Project Modules

There are no modules declared in this project.

Description

Test filter can be used for additional test filtering for main Java test frameworks

  • Junit 4
  • Junit 5
  • TestNG

It uses Allure annotations as base for marking up tests.

Test filter

This is special format string. Base elements are

  • Test set {key:value}

key - string defining annotation in test mark up value - Value of this annotation

  • Set operations:

Excluding ! Intersection & Union |

  • Additional symbols for convenience

(,)

Test filter example:

({epic:Task view}|{epic:Inbox})&!{type:Screenshot tests}

test_filter project structure

test_filter_calculator - Util for calculation of test filter test_filter_adaptor - tools for creating new annotations for markup

test_filter_junit4 - adaptor for Junit 4 test framework test_filter_junit5 - adaptor for Junit 5 test framework test_filter_testng - adaptor for TestNG test framework

How to use

Here is configuration for gradle tests_example

Versions

Version
1.0