[WIP] Test: Uses Criterion framework to test LibSass #1553
Closed
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.
[Work in progress]
Issue-URL: sass/sassc#90.
Summary of current progress:
test/CMakeLists.txt
).CMakeLists
.Theory
andTheoryDataPoints
to test.input.scss
|input.sass
.Besides all the non-TODO tests are running and passing (with both debug and release configurations).
Rationale
The idea is to first make the test runner (close to) the drop-in replacement of Ruby test runner, then make enhancement and incorporate ability to test those features of LibSass which ruby-runner wasn't able to test.
Scope of this PR (checklist):
Existing infrastructure features:
LIBSASS_SKIP_TODO
.LIBSASS_UNEXPECTED_PASS
.LIBSASS_TEST_SPEC_BRANCH
to the name of the desired branch (default is master).expanded
,nested
,compact
,compressed
.nested
output is being compiled and tested.Non-existing in ruby-runner, but most wanted feature:
Usage:
Currently, I have only tested on Windows 10 with VS2015. I intend to test on Unix before merging it.
Questions:
LIBSASS_TEST_SKIP_DOWNLOAD_DEPS
set, re-downloading all dependencies withcmake libsass/test
can be skipped.spec/**/*.css
files to exactly match libsass output?Special thanks to @Snaipe for all the advises + assistance and for building the great testing framework for C: Criterion. 🏆