-
Notifications
You must be signed in to change notification settings - Fork 15
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:
- 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
- type the appropriate
rake
command, e.g.rake gen:filters
from within the Liquid.Ruby directory to regenerate the C# tests from Ruby output - recompile and run the test file
Liquid.NET.Tests.Ruby.FilterTests.cs
.