-
Notifications
You must be signed in to change notification settings - Fork 89
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
The --unexpected-pass should take into account output styles #333
Comments
Every unit test should independent. Currently every output format variant constitutes a separate case. This means that even if we only check for an error or status code ( #494 ) we can run up to 4 tests. Are there cases in real life when this matter? Because to implement this all output formats would need to became assertions in one test, which complicates things a bit. |
Currently determining if a test has magically started passing is PITA. IMHO the underlying sass spec data model is broken which makes these hard. We treat the entire spec as a single suite with 1000s of unit tests. Instead each spec folder should a suit and it's expected outputs as unit tests. If a single unit test fails that suite should fail. If a suite fails it's parent has failed etc.. |
Note to self: the problematic issues are spec/libsass-todo-tests/libsass/propsets |
If expected*.todo file is present (alongside of the .css file) this marks this test as "todo", which can be ignored with --ignore-todo. Therefore test which have some output formats passing, but not the other ones can have a more fine-grained "todo" granularity. Such tests should not be in the folders that contain "todo", since then a whole test may be skipped. Should fix: sass#333
If expected*.todo file is present (alongside of the .css file) this marks this test as "todo", which can be ignored with --ignore-todo. Therefore test which have some output formats passing, but not the other ones can have a more fine-grained "todo" granularity. Such tests should not be in the folders that contain "todo", since then a whole test may be skipped. Should fix: sass#333
We no longer cater for different output styles. |
|
The
--unexpected-pass
should consider a spec as unexpectedly passing, if and only if, all the output styles for that spec also pass.The text was updated successfully, but these errors were encountered: