Serenity, how to run test with maven by tags

1,030 views
Skip to first unread message

Natalja Librante

unread,
Feb 23, 2015, 7:46:53 AM2/23/15
to thucydid...@googlegroups.com
Hi!

In Thucydides I have all my tests separated by tags
So I run it with command mvn clean verify -Dtags=user, for example
Now I migrating to Serenity and all my scripts for running test by tags didn't work anymore
When I start test without tags it runs as expected

How now in Serenity start test by tags with maven?

Thanks,
Natalja

Theo

unread,
Mar 3, 2015, 4:16:20 AM3/3/15
to thucydid...@googlegroups.com
Works for me (currently on Serenity 1.0.16, I will try today an upgrade to 1.0.36)

Can you please provide more info?

Theo

Volodymyr Koval

unread,
Mar 5, 2015, 11:37:21 PM3/5/15
to thucydid...@googlegroups.com
tagging feature also doesn't work for me with version 1.0.35 :(

I am using -Dtags=user option in maven build.

Mike W

unread,
Mar 6, 2015, 10:19:30 AM3/6/15
to thucydid...@googlegroups.com
Tagging works correctly for me in 1.0.37. Don't know if there was a change from 1.0.36 that impacts this.

I have a test with

@WithTagValuesOf({"type:real", "only"})

and when I run with -Dtags=only, this test gets executed and no others.

I would be surprised if it didn't work with the other Tag related annotations.
Reply all
Reply to author
Forward
0 new messages