Sha256: d56a7a62573f308d51d3f8be6ab2ebca2d190b8c7e0e66155acf649a525c6822

Contents?: true

Size: 1.38 KB

Versions: 18

Compression:

Stored size: 1.38 KB

Contents

require 'rubygems'
require "bundler/gem_tasks"
require 'bundler/setup'

require 'rake'

namespace :ruby_app do

  desc 'Monitor RubyApp'
  task :monitor do |task|
    system("cd ./lib/ruby_app; > ./log/application.log; clear; tail -f ./log/application.log")
  end

  desc 'Create RubyApp console'
  task :console do |task|
    system("cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app console")
  end

  desc 'Run RubyApp'
  task :run do |task|
    system("cd ./lib/ruby_app; clear; bundle exec ../../bin/ruby_app run")
  end

  namespace :test do

    desc 'Run feature tests for the given feature file or all features files if no argument is provided'
    task :features, :file do |task, arguments|
      system("bundle exec cucumber --format pretty --tags ~@broken --require features #{arguments.file}")
    end

    desc 'Run RSpec tests'
    task :specs, :file, :line do |task, arguments|
      if arguments.file
        if arguments.line
          system("bundle exec rspec #{arguments.file} --line_number=#{arguments.line} --format=documentation --colour")
        else
          system("bundle exec rspec #{arguments.file} --format=documentation --colour")
        end
      else
        system("bundle exec rspec spec/ --format=documentation --colour")
      end
    end

    desc 'Run all tests'
    task :all => ['ruby_app:test:specs',
                  'ruby_app:test:features']

  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
RubyApp-0.0.26 rakefile
RubyApp-0.0.25 rakefile
RubyApp-0.0.24 rakefile
RubyApp-0.0.23 rakefile
RubyApp-0.0.22 rakefile
RubyApp-0.0.21 rakefile
RubyApp-0.0.20 rakefile
RubyApp-0.0.19 rakefile
RubyApp-0.0.18 rakefile
RubyApp-0.0.17 rakefile
RubyApp-0.0.16 rakefile
RubyApp-0.0.15 rakefile
RubyApp-0.0.14 rakefile
RubyApp-0.0.13 rakefile
RubyApp-0.0.12 rakefile
RubyApp-0.0.11 rakefile
RubyApp-0.0.10 rakefile
RubyApp-0.0.9 rakefile