Test filter


License

License

GroupId

GroupId

com.github.varivoda
ArtifactId

ArtifactId

test_filter_calculator
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_calculator

How to add to project

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

Dependencies

runtime (1)

Group / Artifact Type Version
org.apache.commons : commons-jexl3 jar 3.1

test (2)

Group / Artifact Type Version
org.assertj : assertj-core jar 3.19.0
org.junit.jupiter : junit-jupiter-engine jar 5.7.1

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
0.9