Sha256: d0c098f35341790058788658b8a32addf5a11b75927dc21f79f03a79079d822f

Contents?: true

Size: 665 Bytes

Versions: 2

Compression:

Stored size: 665 Bytes

Contents

#!/usr/bin/env ruby
require 'qunited'

if ARGV.empty? || ARGV.include?('-h') || ARGV.include?('--help')
  puts <<-HELP_TEXT
Usage: qunited [OPTIONS] [JS_SOURCE_FILES...] -- [JS_TEST_FILES..]

Runs JavaScript unit tests with QUnit.

JS_SOURCE_FILES are the JavaScript files that you want to test. They will all be
loaded for running each test.

JS_TEST_FILES are files that contain the QUnit tests to run.
and (optional) NAME

Options:
  -h, --help                  Show this message
  HELP_TEXT
  exit
end

js_source_files, js_test_files = ARGV.join(' ').split('--').map { |file_list| file_list.split(' ') }
exit QUnited::Runner.run(js_source_files, js_test_files)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
qunited-0.1.0 bin/qunited
qunited-0.0.1 bin/qunited