Sha256: f7e358e0b8d9fd88a2abc17f2e3d7a849f2dab78d0bf83259ced482ddfb8cbb8
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
require 'pdk' require 'pdk/cli/exec' require 'pdk/util/bundler' module PDK module Test class Unit def self.cmd(_tests) # TODO: actually run the tests # cmd = 'rake spec' # cmd += " #{tests}" if tests cmd = 'pwd' cmd end def self.invoke(tests, report = nil) PDK::Util::Bundler.ensure_bundle! puts _('Running unit tests: %{tests}') % { tests: tests } output = PDK::CLI::Exec.execute(cmd(tests)) report.write(output) if report end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pdk-0.2.0 | lib/pdk/tests/unit.rb |