Rake::DevEiate::

Specs

module

Testinug specification tasks

Public Instance Methods

anchor
define_tasks()

Define documentation tasks

# File lib/rake/deveiate/specs.rb, line 11
def define_tasks
        super if defined?( super )


        if Rake::DevEiate::SPEC_DIR.exist?
                task :test => :spec

                desc "Run unit tests"
                RSpec::Core::RakeTask.new( :spec ) do |t|
                        t.rspec_opts = "-cfd"
                end
        end

        if Rake::DevEiate::INT_SPEC_DIR.exist?
                task :test => :integration

                desc "Run integration tests"
                RSpec::Core::RakeTask.new( :integration ) do |t|
                        t.rspec_opts = "-cfd"
                        t.pattern = Rake::DevEiate::INT_SPEC_DIR + '**{,/*/**}/*_spec.rb'
                end
        end

        desc "Run specs with coverage reporting enabled"
        task :coverage do
                ENV['COVERAGE'] = 'yes'
                Rake::Task[:spec].invoke
        end


end