Sha256: ce71313726c0a84b8602a07ad030318dd22c195d9c17c5c34f58a94398e1728b

Contents?: true

Size: 665 Bytes

Versions: 6

Compression:

Stored size: 665 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 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.4 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.3 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.2 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.1 lib/wx/wxruby/cmd/test.rb
wxruby3-0.9.0 lib/wx/wxruby/cmd/test.rb