Add code coverage tool#9
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request adds comprehensive new test coverage for core features, built-in functions, and built-in tests in the
MiniJinjaproject. It introduces three new test files, each focused on a different aspect of the library, and updates the test project to support code coverage analysis.New test coverage and code coverage tooling:
Test coverage for built-in functions:
tests/BuiltinFunctionsTests.cswith tests for functions such asrange,lipsum,cycler,joiner,namespace,dict, anddebug, ensuring correct behavior and error handling for each.Test coverage for built-in tests:
tests/BuiltinTestsTests.csto verify all built-in tests (likenone,true,odd,even,number,string,sequence,mapping,iterable,eq,lt,gt,in,lower,upper,startingwith,endingwith,truthy,falsy,sameas) and support for custom tests, including error cases and argument validation.Test coverage for environment and extensibility:
tests/EnvironmentTests.csto test environment features such as template management, globals, filters, tests, functions, disposal, and template rendering with various context types.Test project and tooling improvements:
coverlet.collectorNuGet package to bothtests/tests.csprojandDirectory.Packages.propsto enable code coverage collection during test runs. [1] [2]