mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 17:30:09 +02:00
- Include a copy of the unit test framework so we're no longer depending on incompatible versions for Ruby 1 and 2. - Avoid duplication of path entries in unit tests
18 lines
379 B
Ruby
18 lines
379 B
Ruby
require "test/unit/test-suite-creator"
|
|
|
|
module Test
|
|
module Unit
|
|
module AutoRunnerLoader
|
|
@loaded = false
|
|
class << self
|
|
def check(test_case, method_name)
|
|
return if @loaded
|
|
return unless TestSuiteCreator.test_method?(test_case, method_name)
|
|
require "test/unit"
|
|
@loaded = true
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|