Separate html report for each directory passed to rspec command

1 view
Skip to first unread message

SACHIN V

unread,
Mar 6, 2018, 11:58:33 AM3/6/18
to rspec
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?

Myron Marston

unread,
Mar 6, 2018, 12:01:20 PM3/6/18
to rs...@googlegroups.com

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.

HTH,
Myron




--
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 rspec+unsubscribe@googlegroups.com.
To post to this group, send email to rs...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rspec/f5545bdc-76ba-4a56-8bf8-3e4d8fbc45c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages