stevefolder/vendor/bundle/ruby/3.1.0/gems/websocket-1.2.9/Rakefile
2022-02-04 18:48:09 -05:00

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