Sha256: a5591bff83f7adfc67694100aae312566cb3efcd61da8a9c700a5f026084e37f
Contents?: true
Size: 1.12 KB
Versions: 12
Compression:
Stored size: 1.12 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 :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) end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems