Closed makmic closed 2 months ago
Talked to @makmic. He just wants to be able to run all failed CI-tests locally with minimum effort.
Since we already have this command in place, adding this seems reasonable to me. Implementation notes:
start_with?
or end_with?
, let's use regular expressions like %r{(^|/)features/|\.feature($|:)}
and %r{(^|/)spec/|\_spec.rb($|:)}
We should add hints about this command to the cucumber
and rspec
commands. Like "geordi tests
takes mixed RSpec and Cucumber paths and runs both. Useful when copying failed tests from a CI run."
I'll discuss this with the team.
Released as 10.1.0.
The current implementation of
geordi tests
looks like this:I wanted to run a command like this, which is not currently possible:
./spec
(see.start_with?('spec')
)As we're using GitLab which offers a quite practical copy failed tests button, I'd really be looking forward to support its output with the
geordi tests
command.A possible implementation could look like this (untested!):
WDYT?