Scroll to navigation

SASS-SPEC(1) User Commands SASS-SPEC(1)

NAME

sass-spec - sass-spec testsuite for Sass implementions

SYNOPSIS

sass-spec.rb [options] [spec_directory...]

EXAMPLES

Run `sassc --style compressed input.scss`: ./sass-spec.rb -c 'sass --style compressed'
Run tests only in the spec/basic folder: ./sass-spec.rb spec/basic

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.

Run verbosely
Output TAP compatible report
Sets a specific binary to run
Run Dart Sass, whose repo should be at the given path.
Pass ARGS to command or Dart Sass.
Run test(s) and generate expected output file(s).
Run any tests marked as todo. Defaults to false.
Run and report tests marked as todo that unexpectedly pass. Defaults to false.
Sets the name of the implementation being tested. Defaults to 'sass'
Run tests that match the pattern you provide
Limit the number of tests run to this positive integer.
Copy tests that fail and make them pass for the current implementatino.
Don't show any logs
Check if any test annotations are unecessary.
When a test fails, enter into a dialog for how to handle it.
April 2020 sass-spec 3.6.3