47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# File 'lib/learn_test/strategies/rspec.rb', line 47
def results
{
username: username,
github_user_id: user_id,
learn_oauth_token: learn_oauth_token,
repo_name: runner.repo,
build: {
test_suite: [{
framework: 'rspec',
formatted_output: output,
duration: output ? output[:summary][:duration] : nil
}]
},
examples: output ? output[:summary][:example_count] : 1,
passing_count: output ? output[:summary][:example_count] - output[:summary][:failure_count] - output[:summary][:pending_count] : 0,
pending_count: output ? output[:summary][:pending_count] : 0,
failure_count: output ? output[:summary][:failure_count] : 1,
failure_descriptions: failures
}
end
|