You can also use the reporter listener interface (which is public and used by the formatters) to build a completely custom report of what’s run, if you look at how the various formatters are put together you’ll see you can register for various events (like example passed, failed, pending etc) and capture all the information you need.
Jon Rowe --------------------------- [email protected] jonrowe.co.uk On Tuesday, 8 September 2015 at 15:37, [email protected] wrote: > Thanks Jon, not sure if rspec consider to add some more interfaces like this > in the future. Yeap, I think this private method is just ok for PoC things, > we will try some other work around like adding some 'before' hooks for now. > > 在 2015年9月8日星期二 UTC+8上午11:54:09,Jon Rowe写道: > > There’s a private api on world that allows you access to the filtered > > examples, because it’s private it’s subject to change in minor or patch > > level increases but you could probably use it for a proof of concept at > > least. `RSpec.world.filtered_examples` > > > > Jon Rowe > > --------------------------- > > [email protected] (javascript:) > > jonrowe.co.uk (http://jonrowe.co.uk) > > > > > > On Tuesday, 8 September 2015 at 13:32, [email protected] (javascript:) > > wrote: > > > > > We have a requirement to write a special test case to check what test > > > cases have been run during this time rspec run. As now we have some CI > > > pipelines which contain a step to run different set of test cases, so for > > > each pipeline, we want to add a special test case at the end of the rspec > > > run to check what set of test cases have been run, is there any Rspec API > > > to help do this? > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "rspec" group. > > > To unsubscribe from this group and stop receiving emails from it, send an > > > email to [email protected] (javascript:). > > > To post to this group, send email to [email protected] (javascript:). > > > To view this discussion on the web visit > > > https://groups.google.com/d/msgid/rspec/3b8ac764-2037-49ed-9ebb-9289129c4ee2%40googlegroups.com > > > > > > (https://groups.google.com/d/msgid/rspec/3b8ac764-2037-49ed-9ebb-9289129c4ee2%40googlegroups.com?utm_medium=email&utm_source=footer). > > > For more options, visit https://groups.google.com/d/optout. > > > -- > You received this message because you are subscribed to the Google Groups > "rspec" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > (mailto:[email protected]). > To post to this group, send email to [email protected] > (mailto:[email protected]). > To view this discussion on the web visit > https://groups.google.com/d/msgid/rspec/b82c2e36-6123-4aff-94ba-20d0753e1a7e%40googlegroups.com > > (https://groups.google.com/d/msgid/rspec/b82c2e36-6123-4aff-94ba-20d0753e1a7e%40googlegroups.com?utm_medium=email&utm_source=footer). > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "rspec" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/2F750E315E304E8C822359C989D7272D%40jonrowe.co.uk. For more options, visit https://groups.google.com/d/optout.
