rspec_reports_formatter icon indicating copy to clipboard operation
rspec_reports_formatter copied to clipboard

This gem can not support nested example group?

Open timsheng opened this issue 10 years ago • 3 comments

when i organize my test cases in this style. the html report doesn't display right. describe "first example group" do it "should be success" do 1.should eql 1 end describe "nested example group" do it "should be success again" do 2.should eql 2 end end it "should be failure" do 1.should eql 2 end it "should be pending" do pending end end

timsheng avatar Sep 25 '14 13:09 timsheng

Hmm I never considered nested describe blocks - I'll have to investigate how best to handle them

Sent from my iPad

On 25 Sep 2014, at 14:56, tim_sheng [email protected] wrote:

when i organize my test cases in this style. the html report doesn't display right. describe "first example group" do it "should be success" do 1.should eql 1 end describe "nested example group" do it "should be success again" do 2.should eql 2 end end it "should be failure" do 1.should eql 2 end it "should be pending" do pending end end

— Reply to this email directly or view it on GitHub.

kingsleyh avatar Sep 25 '14 16:09 kingsleyh

Would you prefer they end up as separate files as if they were not nested? Or you would prefer to maintain the nesting in the report?

kingsleyh avatar Sep 25 '14 16:09 kingsleyh

yes , i prefer the next one.

timsheng avatar Sep 26 '14 03:09 timsheng