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
It is not self-explanatory that grep will recognize whether the input string is a regex or not. In the case of a string it sanitizes it to turn it into a regex.
If you want to run only some tests matching a given pattern you can do this in the following way
31
+
If you want to run only some tests whose name match a given pattern you can do this in the following way
32
32
33
33
```bash
34
34
$ karma start &
35
35
$ karma run -- --grep=<pattern>
36
36
```
37
37
38
-
or
38
+
where pattern is either a string (e.g `--grep=#slow` runs tests containing "#slow") or a Regex (e.g `--grep=/^(?!.*#slow).*$/` runs tests _not_ containing "#slow").
0 commit comments