Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use assert_template_result & assert_match_syntax_error in more places #1611

Merged
merged 1 commit into from Sep 1, 2022

Conversation

dylanahsmith
Copy link
Contributor

Problem

The test/integration folder is meant to be a set of tests that can be shared with other liquid implementations, initially used with liquid-c. However, it still has coupling to the liquid library API, which could be further reduced.

Solution

Use assert_template_result & assert_match_syntax_error in more places, since they are more decoupled from the liquid library API.

Follow-up Work

There were tests that couldn't be converted with the current assert_template_result & assert_match_syntax_error interface, since they require additional options to be supported. For instance, there is a need to specify the file system, error mode and to render liquid errors. Once that is done, more integration tests can be decoupled from the library API.

I've also deferred the conversion of the standard library tests, which could use another help method to properly test the filter results, taking into account the type of the result.

I also noticed there were tests that are coupled to the liquid library API, which still need to be moved out of the test/integration folder to keep them separate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants