Sha256: 2dc4d92c6a7924142905a2b52f0546b00607348cd5de10fa98ab2b8b202f4529

Contents?: true

Size: 591 Bytes

Versions: 6

Compression:

Stored size: 591 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|
            system(RUBY, test)
          end
        end
      end
    end

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.beta.14 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/wxruby/cmd/test.rb