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
deno test --filter "/\btag::slow\b/"# "tag::slow" isn't sufficient as it would match "tag::slowest", etc.
Using negative lookaheads (which I'm not even sure deno test --filter supports) is even more awkward for specifying tags not to run and patterns get more complex when you want to include some tags but not other.
Encoding tags into test names also creates noise in the test report that isn't desirable, especially when tests have multiple tags.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I want a way to easily run a subset of tests based on tags (unit, integration, e2e, fast, slow, smoke, etc.).
Status quo
Command line filtering makes this possible with patterns but it is awkward:
something.test.ts
example
Using negative lookaheads (which I'm not even sure
deno test --filter
supports) is even more awkward for specifying tags not to run and patterns get more complex when you want to include some tags but not other.Encoding tags into test names also creates noise in the test report that isn't desirable, especially when tests have multiple tags.
Proposal
something.test.ts
Command line tag expression ideas
JavaScript-like boolean operators
note that
!
has to be used inside single quotes ('
) rather than double quotes ("
)predicate-like
note that
not()
is function-like, this might not be necessary but made sense at the time of writingcucumber-like
see Tag expressions - Cucumber Reference - Cucumber Documentation
Beta Was this translation helpful? Give feedback.
All reactions