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

Class duration within a package shows the package duration #76

Open
justinkillen opened this issue Dec 19, 2019 · 0 comments
Open

Class duration within a package shows the package duration #76

justinkillen opened this issue Dec 19, 2019 · 0 comments

Comments

@justinkillen
Copy link

Given a file: spec/units/test.rb:

RSpec.describe TestTests do
describe 'Test1' do
sleep(30)
end

describe 'Test2' do
sleep(45)
end
end

and spec/units/test3.rb:
RSpec.describe TestTests3 do
describe 'Test3' do
sleep(57)
end
end

Jenkins will expose it as:
Package: spec.units
Class: test

and

Package: spec.units
Class: test3

When I view the top level 'Test Result', I see spec.units with a duration of 132 seconds (correct). If I go down one level and view 'test', I see:

Class -> Duration
TestTests -> 132 seconds
TestTests3 -> 132 seconds

Expected values are:
TestTests -> 75 seconds
TestTests3 -> 57 seconds

Going down one more level gives tests with correct durations ((e.g. 'Test1' -> 30 seconds)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant