Sha256: 3890222024ce451bc3f598ce3d108359906367d97ec17c2d2cb711b407787e98

Contents?: true

Size: 684 Bytes

Versions: 5

Compression:

Stored size: 684 Bytes

Contents

# Copyright (c) 2023 Jerome Arbez-Gindre
# frozen_string_literal: true

require('cucumber/rake/task')
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')

desc('Test all features')
task(cucumber: 'test:features')

Version data entries

5 entries across 5 versions & 1 rubygems

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