File: Rakefile

package info (click to toggle)
ruby-websocket 1.2.9-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 464 kB
  • sloc: ruby: 2,669; makefile: 4
file content (28 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# 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