Sha256: d8faf04274049ac470d957d9f3af73d5bd0b4913676ecf01cd9e44e223e96362
Contents?: true
Size: 1 KB
Versions: 1
Compression:
Stored size: 1 KB
Contents
# ------------------------------------------------------------ # RSpec require 'rspec/core' require 'rspec/core/rake_task' namespace :spec do desc 'Run all unit tests' RSpec::Core::RakeTask.new(:unit) do |task| task.rspec_opts = %w[--color --format documentation --order default] task.pattern = 'unit/**/*_spec.rb' end task all: [:unit] end desc 'Run all tests' task spec: 'spec:all' # ------------------------------------------------------------ # Coverage desc 'Run all unit tests with coverage' task :coverage do ENV['COVERAGE'] = 'true' Rake::Task['spec:unit'].execute end # ------------------------------------------------------------ # RuboCop require 'rubocop/rake_task' RuboCop::RakeTask.new # ------------------------------------------------------------ # Miscellaneous task :debug_load_path do puts $LOAD_PATH end # ------------------------------------------------------------ # Defaults desc 'Run unit tests, check test coverage, check code style' task default: %i[coverage rubocop]
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
stash-wrapper-0.1.12 | Rakefile |