bin/jazrb in smparkes-jazrb-0.0.10 vs bin/jazrb in smparkes-jazrb-0.0.11
- old
+ new
@@ -86,10 +86,14 @@
# p attrs
case name
when "testsuites";
when "testsuite";
@testsuite_name = attrs["name"]
+ if @testcase_pending = ( attrs["skipped"] == "true" )
+ $spec_info[:specs] << (tc = {})
+ $spec_info[:pending] << $spec_info[:specs].last
+ end
when "testcase";
$spec_info[:specs] << (tc = {})
tc[:name] = @testsuite_name + " : " + attrs["name"]
@testcase_failed = false
when "failure";
@@ -115,9 +119,11 @@
when "testcase";
if !$jazrb_xml
char = nil
if @testcase_failed
char = red("F")
+ elsif @testcase_pending
+ char = yellow("*")
else
char = green(".")
end
print char
$stdout.flush