mardi 22 septembre 2020

Running tests with multiple tags in Serenity

I have a test automation framework developed using Serenity. The tests in the framework are individually tagged as @WithTagValuesOf({"mobile","tag"}) let's say or @WithTagValuesOf({"desktop","tag"}) using net.thucydides.core.annotations.WithTagValuesOf.

Is there a way to make the maven commands pick up only the "desktop" + "tag" test for example?

I have tried mvn clean verify -Dtags=desktop -Dtags=tag but it ignores the desktop tag and runs both tests.

Another try was mvn clean verify -Dtags="desktop,tag" but that doesn't run anything for me.

Is there a way to kind of make an AND between the tags as opposed to an OR?

Aucun commentaire:

Enregistrer un commentaire