Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Use wildcards or regular expression in filter "is in project with name"
markoaschoff
#1 Posted : Tuesday, October 29, 2019 12:46:05 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/18/2018(UTC)
Posts: 4
Location: Germany

Is it possible to use wildcards or regular expressions in test filter "is in project with name"?

I would like to configure tests to run automatically that are in projects with following name scheme: *.UnitTests

Currently this does not seem to work.

Regards
Marko
michaelkroes
#2 Posted : Tuesday, October 29, 2019 12:52:47 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 164
Location: Netherlands

Thanks: 74 times
Was thanked: 35 time(s) in 33 post(s)
Hi Marko,

Thanks for posting.

This should be possible with the filter full name matches regex filter. The UnitTests keyword will probably be unique enough so you don't have to add any other wildcard.
markoaschoff
#3 Posted : Tuesday, October 29, 2019 1:03:14 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/18/2018(UTC)
Posts: 4
Location: Germany

Hi Michael,

thank you. Unfortunately that does not cover exactly what I'd expect. Typically I have my unit tests in the same root namespace as the production code to reduce the amount of required using directives. In that case UnitTests is not part of the full name, however it is part of the project name.

My current workaround is to specify multiple filters with exact project name. But this way I need to add a filter every time I add a new unit test project to my solution.

Regards
Marko
michaelkroes
#4 Posted : Tuesday, October 29, 2019 1:08:40 PM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 164
Location: Netherlands

Thanks: 74 times
Was thanked: 35 time(s) in 33 post(s)
Ah thanks for clearing that up!

One thing I can think of is to add a category to the test project on an assembly level and filter on that. This means you don't have to change the filter, but you'd still be required to make a modification to the test project.

I'll check with Remco and see if he has any other ideas
markoaschoff
#5 Posted : Tuesday, October 29, 2019 1:13:00 PM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/18/2018(UTC)
Posts: 4
Location: Germany

Thanks Michael :-)
michaelkroes
#6 Posted : Wednesday, October 30, 2019 5:20:35 AM(UTC)
Rank: NCrunch Developer

Groups: Registered
Joined: 9/22/2017(UTC)
Posts: 164
Location: Netherlands

Thanks: 74 times
Was thanked: 35 time(s) in 33 post(s)
We've talked this through and we'll be adding this in before the V4 release. This should be available within a couple of weeks.
markoaschoff
#7 Posted : Wednesday, October 30, 2019 9:19:58 AM(UTC)
Rank: Newbie

Groups: Registered
Joined: 9/18/2018(UTC)
Posts: 4
Location: Germany

That's good news, thanks alot. :-)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.038 seconds.