The simplest way to get what you want is just to run rspec twice: $ rspec dir1 --format html --out dir1.html && rspec dir2 --format html --out dir2.html
You could also look into creating a custom formatter <https://ieftimov.com/how-to-write-rspec-formatters-from-scratch>. HTH, Myron On Tue, Mar 6, 2018 at 3:08 AM, SACHIN V <[email protected]> wrote: > Hi, > > I would like to run my tests in the following manner: > > rspec <dir1> <dir2> > > And I require html results of tests in dir1 and dir2 to be displayed in > separate reports? Can someone please tell me if that's possible? > > -- > 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/f5545bdc-76ba-4a56-8bf8-3e4d8fbc45c2%40googlegroups.com > <https://groups.google.com/d/msgid/rspec/f5545bdc-76ba-4a56-8bf8-3e4d8fbc45c2%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/CADUxQmu2aFbNqbaW-anJiJLq4iKE-GuYw-Yf42%3DDat9z_MGLeg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
