sass-spec.rb 641 B

1234567891011121314151617181920212223
  1. #!/usr/bin/env ruby
  2. #This script requires a standard directory hierarchy which might be a bit cumbersome to set up
  3. #
  4. #The hierarchy looks like this near the leaves:
  5. #...
  6. #|-test_subclass_1
  7. #| |-test_1
  8. #| | |-input.scss
  9. #| | --expected_output.css
  10. #| --test_2
  11. #| |-input.scss
  12. #| --expected_output.css
  13. #|-test_subclass_2
  14. #| |-test_1
  15. #| | |-input.scss
  16. #| | --expected_output.css
  17. #...
  18. #the point is to have all the tests in their own folder in a file named input* with
  19. #the output of running a command on it in the file expected_output* in the same directory
  20. require_relative 'lib/sass_spec'
  21. SassSpec::Runner.new(SassSpec::CLI.parse()).run