SASS-SPEC(1)
π NAME π
sass-spec β bestie, this is the sass-spec testsuite for Sass implementions, and yes it lives in section 1 (User Commands) of the manual, so you can pull it up whenever your Sass implementation is acting up π
β¨ SYNOPSIS β¨
sass-spec.rb [options] [spec_directory...]
That's it. Options first, then as many spec_directory paths as your heart desires π¦
πΈ EXAMPLES πΈ
Okay so here's the tea, two ways to run it:
- Run
sassc --style compressed input.scss:./sass-spec.rb -c 'sass --style compressed' - Run tests only in the
spec/basicfolder:./sass-spec.rb spec/basic
π DESCRIPTION π
This script will search for all files under the spec (or specified) directory that are named input.scss. It will then run a specified binary and check that the output matches the expected output. If you want set up your own test suite, follow a similar hierarchy as described in the initial comment of this script for your test hierarchy. π
This command can also be used to annotate tests to control which tests are ran and when. For details: ./sass-spec.rb annotate -h β¨
π¨ Make sure the command you provide prints to stdout. Like, actually. No cap. If it doesn't, this whole thing simply will not work and you'll be sad π
π OPTIONS π
-v,--verboseβ Run verbosely. Give me every last detail, I want the whole story π£οΈ-t,--tapβ Output TAP compatible report. Very structured, very demure β¨-c,--command COMMANDβ Sets a specific binary to run.--dart PATHβ Run Dart Sass, whose repo should be at the given path. Point it at the repo, babe π―--cmd-args ARGSβ Pass ARGS to command or Dart Sass.-g,--generateβ Run test(s) and generate expected output file(s). Manifesting the expected output into existence πͺ--run-todoβ Run any tests marked as todo. Defaults tofalse.--probe-todoβ Run and report tests marked as todo that unexpectedly pass. Defaults tofalse. Sneaky little overachievers π--impl NAMEβ Sets the name of the implementation being tested. Defaults to'sass'--filter PATTERNβ Run tests that match the pattern you provide. Choose your fighters βοΈ--limit NUMBERβ Limit the number of tests run to this positive integer.--migrate-implβ Copy tests that fail and make them pass for the current implementatino. (That spelling is straight from the source, bestie β we respect the lore π)--silentβ Don't show any logs. Shhh π€«--check-annotationsβ Check if any test annotations are unecessary.--interactiveβ When a test fails, enter into a dialog for how to handle it. It's giving customer service, but for broken tests π«Ά
π SEE YA π
That's the whole page, babe. This one's sass-spec 3.6.3, dated April 2020 β go forth and test your implementation, and remember: if the binary doesn't print to stdout, none of this was ever going to work π π¦ β¨
π¦ where this page comes from
- debian bookworm: sass-spec 3.6.3-1.1 Β· MIT
- ubuntu jammy: sass-spec 3.6.3-1.1 Β· MIT
- ubuntu noble: sass-spec 3.6.3-1.1 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms