Skip to content

Class duration within a package shows the package duration #76

@justinkillen

Description

@justinkillen

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions