tasks/test.rake in asciidoctor-defmastership-1.0.10 vs tasks/test.rake in asciidoctor-defmastership-1.1.0
- old
+ new
@@ -1,16 +1,25 @@
# Copyright (c) 2023 Jerome Arbez-Gindre
# frozen_string_literal: true
+require('cucumber/rake/task')
+require('rake/clean')
require('rspec/core/rake_task')
namespace 'test' do
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = ['--options config/rspec']
end
+ CLEAN << 'features_results.html'
+
+ Cucumber::Rake::Task.new(:features)
+ Cucumber::Rake::Task.new('features:wip') do |t|
+ t.cucumber_opts = ['--profile wip']
+ end
+
desc 'Runs all unit tests and acceptance tests'
- task(all: ['test:spec'])
+ task(all: ['test:spec', 'test:features'])
end
desc 'Synonym for test:spec'
task(spec: 'test:spec')