Sha256: 5e75fb6f5203f6ae60c9dc8ed873ce480cd036073043bf34dd4b520ec6194b34
Contents?: true
Size: 795 Bytes
Versions: 2
Compression:
Stored size: 795 Bytes
Contents
$:.unshift(File.expand_path('../..', __FILE__)) unless $:.include? File.expand_path('../..', __FILE__) require 'sasspectations' namespace :sasspectations do desc 'Run SCSS specs' task :run, :path do |t, args| path = Pathname.new(Dir.pwd).join(args[:path] || '.').to_s runner = Sasspectations::Runner.new(path) # Parsing *then* displaying the results won't provide continuous feedback # for large test suites. This parsing operation will be fairly quick no # matter what, so it doesn't seem to be a problem, but may want to # reconsider this later # parser = Sasspectations::ResultParser.new(runner.render) output_formatter = Sasspectations::OutputFormatter.new(parser.tap(&:parse)) output_formatter.display exit 1 if parser.failed? end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sasspectations-0.0.2 | lib/tasks/sasspectations.rake |
sasspectations-0.0.1 | lib/tasks/sasspectations.rake |