Sha256: 2d89c5ce08e140fa62f8342b31c4694fa41d31c2eb7ae4d64426462a91d6bffa

Contents?: true

Size: 695 Bytes

Versions: 6

Compression:

Stored size: 695 Bytes

Contents

# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.

# wxruby unit test command handler
#--------------------------------------------------------------------

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

6 entries across 6 versions & 1 rubygems

Version Path
wxruby3-0.9.5-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.4-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.3-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.2-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.1-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0-x64-mingw-ucrt lib/wx/wxruby/cmd/test.rb