Sha256: 26aba2f77649f277de777b2fd05ba3e4b330e0d82f0816a34670e19b6e3d8618
Contents?: true
Size: 1.19 KB
Versions: 15
Compression:
Stored size: 1.19 KB
Contents
require 'rake_factory' require 'ruby_leiningen' require 'ruby_leiningen/plugins' require_relative '../mixins/directoried' module RakeLeiningen module Tasks class Test < RakeFactory::Task include Mixins::Directoried default_name :test default_description RakeFactory::DynamicValue.new { |t| "Run #{t.type ? "all #{t.type}" : "all"} tests." } default_prerequisites RakeFactory::DynamicValue.new { |t| t.ensure_task_name ? [t.ensure_task_name] : [] } parameter :type parameter :only parameter :test_selectors parameter :namespaces parameter :files parameter :profile parameter :environment parameter :directory, default: '.' parameter :ensure_task_name, default: 'leiningen:ensure' action do |t| puts "Running #{t.type ? "all #{t.type}" : "all"} tests..." in_directory(t.directory) do RubyLeiningen.eftest( only: t.only, test_selectors: t.test_selectors, namespaces: t.namespaces, files: t.files, profile: t.profile, environment: t.environment) end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems