You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to be able to say npx checkly trigger --tags=my-app --not-tags=under-development, in this example, this would select all tests with the tag of my-app, but exclude tests which are flagged as under-development.
This is partly a product of the way we deploy checkly at Auto Trader, but the app tag is always present for a given app, so I need a method of excluding under-development tests.
Context; we "trigger" and apps tests after the app, or tests for that app, get deployed to create a CICD flow.
How would you implement this feature?
As above
The text was updated successfully, but these errors were encountered:
Thanks for the suggestion! I took a look at the backend, and it seems that some changes would be needed there as well.
It might be better to integrate the proposed functionality of --not-tags with the existing --tags flag. Since multiple --tags flags are combined with OR, it may get a little confusing. For example:
(one AND two) OR (NOT three AND NOT four) OR (five)
Or:
((one AND two) OR (five)) AND (NOT three AND NOT four)
In either case, it will not be possible to achieve BOTH behaviors at the same time, because the operator is implied. So, you could only have tags AND NOT not-tags, or tags OR NOT not-tags depending on which option you chose at implementation time, but you would be unable to support both.
Therefore it might make more sense to simply use !tag with --tags to exclude a tag. Then you could do:
(one AND two) OR (three AND NOT four AND NOT five) OR (NOT six)
Effectively giving you access to both OR and AND.
However this implementation is only possible if no customer is currently using an actual tag with a ! prefix. I will ask someone to check later. Side note: obviously the CLI currently does not work with tag values that contain a comma, so I suppose we don't have perfect matching capability even now.
Would you be OK with this alternate solution, and/or do you have any other comments? Also, how soon do you need this feature?
What problem does this feature solve?
I would like to be able to say
npx checkly trigger --tags=my-app --not-tags=under-development
, in this example, this would select all tests with the tag ofmy-app
, but exclude tests which are flagged asunder-development
.This is partly a product of the way we deploy checkly at Auto Trader, but the
app
tag is always present for a given app, so I need a method of excluding under-development tests.Context; we "trigger" and apps tests after the app, or tests for that app, get deployed to create a CICD flow.
How would you implement this feature?
As above
The text was updated successfully, but these errors were encountered: