KonnorRogers / view-layer-benchmarks

benchmarks of view layers for Rails
27 stars 6 forks source link

add rendering tests #16

Closed KonnorRogers closed 2 months ago

KonnorRogers commented 3 months ago

@sebyx07 I noticed that Papercraft doesn't behave like the other renders. Heres the diff I get from Minitest:

F

Failure:
RenderTest#test_that_all_benchmarks_render_the_same [test/render_test.rb:23]:
papercraft failed to match the expected HTML..
--- expected
+++ actual
@@ -1 +1,3 @@
-"<h1>hello Fox Mulder</h1>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>  <p>nested hello Fox Mulder</p>"
+# encoding: ASCII-8BIT
+#    valid: true
+"&lt;h1&gt;hello Fox Mulder&lt;/h1&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;&lt;p&gt;nested hello Fox Mulder&lt;/p&gt;"