Sha256: 2e316753a54e3758c247471a51c48720cc66a433938e3aa6303bb56391480cdd

Contents?: true

Size: 647 Bytes

Versions: 5

Compression:

Stored size: 647 Bytes

Contents

# 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', 'test:features'])
end

desc 'Synonym for test:spec'
task(spec: 'test:spec')

desc 'Synonym for test:all'
task(test: 'test:all')

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
asciidoctor-defmastership-1.3.0 tasks/test.rake
asciidoctor-defmastership-1.2.0 tasks/test.rake
asciidoctor-defmastership-1.1.2 tasks/test.rake
asciidoctor-defmastership-1.1.1 tasks/test.rake
asciidoctor-defmastership-1.1.0 tasks/test.rake