Sha256: 709333e32cdf08ac54e3c9b03a04f64d3a60cf792561ff089048e0fc1e73e4ff

Contents?: true

Size: 606 Bytes

Versions: 3

Compression:

Stored size: 606 Bytes

Contents

# wxruby unit test command handler
# Copyright (c) M.J.N. Corino, The Netherlands
#--------------------------------------------------------------------

require 'fileutils'

module WxRuby
  module Commands
    class Test
      def self.description
        "    test\t\t\tRun wxRuby3 regression tests."
      end

      def self.run(argv)
        if argv == :describe
          description
        else
          Dir[File.join(WxRuby::ROOT, 'tests', '*.rb')].each do |test|
            exit(1) unless system(RUBY, test)
          end
        end
      end
    end

    self.register('test', Test)
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.3 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.rc.2 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.rc.1 lib/wx/wxruby/cmd/test.rb