Closed iamralch closed 2 days ago
Indeed it is not obvious, but it has been the behavior for several years and changing it may break existing user's scripts. I'm not sure what the best course of action is.
perhaps for your usecase (it looks like you are building developer tooling) it might be easier to use --focus-file
and pass an explicit file and line number?
@onsi appreciate your quick response. I think I have a clue on how to overcome that behaviour. I will close the issue for now.
Presently,
ginkgo
is not consistent when you want to run tests that are usingwhen
instead ofcontext
.Let's have the following suite:
If you want to run the first test, you should run the following command:
If you want to run the second test, you should run:
The second test requires
when
prefix when you create the regexp. It's not obvious and consistent with the first call.https://github.com/nvim-contrib/nvim-ginkgo/issues/3