Sha256: e7b0aefede0bda0afd5ed802456ae0ec566cc33324de2b59cf3de7954f1f17f7

Contents?: true

Size: 610 Bytes

Versions: 1

Compression:

Stored size: 610 Bytes

Contents

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

require 'fileutils'

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wxruby3-shapes-0.9.0.pre.beta.3 lib/wx/wx-shapes/cmd/test.rb