Filter Is Not Working in Azure Pipeline

30 views
Skip to first unread message

Yufeng Kang

unread,
May 11, 2020, 12:18:47 PM5/11/20
to spe...@googlegroups.com
Hi, I have applied the filter in the Azure pipeline to skip certain tests based on the environments. 

Under the Arguments in Azure pipeline task I have: --filter="Category!=mobile_only"

@mobile_only
  Scenario: this is a mobile test 


Specflow Filter.JPG



But this filter is not working, all tests are still excuted including "mobile_only". 



Thank you,
Yufeng

666Tomsk

unread,
May 28, 2020, 5:30:43 AM5/28/20
to SpecRun
I believe you have to use TestCategory, in the 'Test filter criteria' field in the VSTest Task

TestCategory!=mobile_only


That works for me.

Eliezer Cazares

unread,
May 28, 2020, 1:12:37 PM5/28/20
to spe...@googlegroups.com
Curious why you're not using VSTest/MsTest task ?

With that one you can add filters too. --where="cat=='tag123'"

--
You received this message because you are subscribed to the Google Groups "SpecRun" group.
To unsubscribe from this group and stop receiving emails from it, send an email to specrun+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/specrun/0edbf489-a238-4f6e-83e6-5076e44dc3ef%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages