Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autocreate / autodelete #4

Closed
wants to merge 8 commits into from
Prev Previous commit
Next Next commit
Update lib/TestReportHandler.rb
I will commit the suggestion then later add the code inside the each iterator

Co-authored-by: Jack Fraser <[email protected]>
  • Loading branch information
jhlee-mitre and ms-k1ngk0ng committed May 23, 2022
commit 21f801112b2f4e62d0ed10de9940406f509f8b12
6 changes: 5 additions & 1 deletion lib/TestReportHandler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,11 @@ def finalize
report.issued = DateTime.now

num_passes = 0
report.test[0].action.each do |ac|
report.test.each do |test|
test.action.each do |ac|
[your code here]
end
end
num_passes += 1 if ac.operation.result.code == 'pass' if ac.operation
num_passes += 1 if ac.assert.result.code == 'pass' if ac.assert
end
Expand Down