-
Notifications
You must be signed in to change notification settings - Fork 462
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
Fix error reporting regression #1512
Conversation
714b204
to
9b06918
Compare
With: div {
height: 10px; I am still getting: Error: Invalid CSS after "": expected "}", was "" With Ruby Sass, it produces: Invalid CSS after " height: 10px;": expected "}", was "" (tested both with LF and CRLF on win) |
9b06918
to
42e0910
Compare
Hopefully this time ... and we urgently need some way to have these unit tested, otherwise it's nearly impossible to refactor this kind of thing! |
42e0910
to
8861bc1
Compare
Thanks! This seems to be fixed with 8861bc1. Edit: was testing against wrong branch, there is no ellipsis mark ( Regarding testing errors and other special / internal features of libsass, as per sass/sassc#90, in my humble opinion, we should invest effort only once and get rid of the Ruby dependency in favour of C++ testing framework. I will try to prototype salient aspects of testing in C++ using some slim framework (whichever is trending in other repos on GitHub) pretty 🔜 (will roll up my selves on coming weekend), in effort to make it a drop-in replacement for ruby test runner for sass-spec (like we have in node-sass). IMO, first three points to focus on would be:
On top of that, we can build infrastructure for source-map, memory management and performance tests etc. in a long run. :) |
I've been thinking the same. It must be very hard to develop on the API
|
To test an API you do integration tests. Unit testing requires decomposition of the code internally to test particular pieces. There are some stub tests in https:/sass/libsass/tree/202a4ea098c6f99ed70344135dbe3d4720e0c681/test which afaik are not connected to the CI. Getting them to work would be a good first step. |
My 2c on this is that it makes sense to separate the c++ test runner from
|
Considering the intent is to keep Sass-spec repo neutral, independent of any runtime; all the consumers of Sass-spec will have the test tools in their own repos, written in the corresponding runtimes etc. For example, node-sass which conceptually is a secondary consumer if we strictly go by the laws of food-chain, but practically sets an example of using Sass-spec as a fixtures-only submodule. |
Addresses #1506