29 lines
603 B
Ruby
29 lines
603 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
require 'bundler'
|
||
|
require 'rspec/core/rake_task'
|
||
|
require 'rubocop/rake_task'
|
||
|
|
||
|
Bundler::GemHelper.install_tasks
|
||
|
|
||
|
RSpec::Core::RakeTask.new do |t|
|
||
|
t.rspec_opts = ['-c', '-f progress']
|
||
|
t.pattern = 'spec/**/*_spec.rb'
|
||
|
end
|
||
|
|
||
|
RuboCop::RakeTask.new
|
||
|
|
||
|
task default: %i[spec rubocop]
|
||
|
|
||
|
namespace :autobahn do
|
||
|
desc 'Run autobahn tests for client'
|
||
|
task :client do
|
||
|
system('wstest --mode=fuzzingserver --spec=autobahn-client.json')
|
||
|
end
|
||
|
|
||
|
desc 'Run autobahn tests for server'
|
||
|
task :server do
|
||
|
system('wstest --mode=fuzzingclient --spec=autobahn-server.json')
|
||
|
end
|
||
|
end
|