Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Replace old spec.rake
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed Jan 27, 2021
1 parent d451d34 commit e514e8a
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions lib/tasks_private/spec.rake
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
namespace :spec do
desc "Setup environment specs"
task :setup => ["app:test:vmdb:setup"]

RSpec::Core::RakeTask.new(:rails => :setup) do |t|
EvmTestHelper.init_rspec_task(t)
end

desc "Run javascript tests"
task :javascript => :environment do
system('yarn test --runInBand')
exit $?.exitstatus
end
end

task :spec do
test_suite = ENV["TEST_SUITE"] || "spec:rails"
Rake::Task[test_suite].invoke
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec => 'app:test:spec_deps') do |t|
EvmTestHelper.init_rspec_task(t)
end

0 comments on commit e514e8a

Please sign in to comment.