Sha256: 89724f5bad7d84b3d5bd2f532a155c8b2a39fcc1dcaccb68db824b78543e4c42
Contents?: true
Size: 548 Bytes
Versions: 3
Compression:
Stored size: 548 Bytes
Contents
#!/usr/bin/env ruby require "./lib/kommando" require 'tempfile' find_examples = Kommando.new "find examples -type f -name *" find_examples.run e2e_output = Tempfile.new "test" for example in find_examples.out.split("\r\n") do print "Running #{example} ".ljust(74, ".") example = Kommando.new "ruby #{example}", { output: e2e_output.path } example.run unless example.code == 0 puts "\n#{File.read(e2e_output.path)}" raise "Example #{example} did not exit cleanly" end puts " done" end puts "" puts "all good." exit 0
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
kommando-0.1.2 | bin/e2e |
kommando-0.1.1 | bin/e2e |
kommando-0.1.0 | bin/e2e |