Test filter


License

License

GroupId

GroupId

com.github.varivoda
ArtifactId

ArtifactId

test_filter_adaptor
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_adaptor

How to add to project

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

Dependencies

runtime (1)

Group / Artifact Type Version
io.qameta.allure : allure-java-commons jar 2.13.8

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