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
describe'MyTests'docontext'when can view profile'doit'should run'endcontext'when can view profile settings'doit'should not run'endend
If I use minitest line to run all tests in the first context (i.e: when can view profile) then it will also run the second as the names start the same when really it should only run the tests inside that specific context block.
the matching of describe blocks works by building a regex that matches the describe name, since that's the only input minitest filter supports ... so a workaround might be to build a list of all possible test names instead ... not sure if that's supported in minitest core, but worth a try, best first look into how options[:filter] is handled in minitest and how we could make it do what we want
@grosser thanks for coming back to me so quickly and clarifying the position. I will endeavour to investigate but in all honestly I doubt I'll have much time in the next few weeks will raise a PR if I come up with anything worthwhile!
Activity
grosser commentedon Dec 28, 2018
the matching of describe blocks works by building a regex that matches the describe name, since that's the only input minitest filter supports ... so a workaround might be to build a list of all possible test names instead ... not sure if that's supported in minitest core, but worth a try, best first look into how options[:filter] is handled in minitest and how we could make it do what we want
fran-worley commentedon Jan 3, 2019
@grosser thanks for coming back to me so quickly and clarifying the position. I will endeavour to investigate but in all honestly I doubt I'll have much time in the next few weeks will raise a PR if I come up with anything worthwhile!