Skip to content

Ruby Test Equivalence

Mike Bridge edited this page Oct 22, 2015 · 3 revisions

We check that Liquid.NET is backwards-compatible with Shopify Liquid by exporting the results of that project's Ruby tests as C# Test files which can then be compiled and run on the CLR. We also have several other sets of tests which can be modified.

To add more compatibility tests:

  1. modify the appropriate test source file, e.g. https://github.com/mikebridge/Liquid.NET/blob/master/Liquid.Ruby/tests/filters.txt with the Liquid that we want to test
  2. type the appropriate rake command, e.g. rake gen:filters from within the Liquid.Ruby directory to regenerate the C# tests from Ruby output
  3. recompile and run the test file Liquid.NET.Tests.Ruby.FilterTests.cs.
Clone this wiki locally