Uploaded image for project: 'Puppet Development Kit'
  1. Puppet Development Kit
  2. PDK-400

Inconsistent time reporting for test unit with/without --parallel

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • PDK 1.8.0
    • None
    • Hide

      pdk test unit and pdk test unit --parallel output consistent timing.

      Show
      pdk test unit and pdk test unit --parallel output consistent timing.
    • Needs Assessment
    • Bug Fix
    • The output of pdk execution duration from running a command normally versus running a command with the `parallel` flag was inconsistent. This fix makes the duration output consistent.
    • Needs Assessment

    Description

      pdk test unit reports the time that rspec spends running tests. pdk test unit --parallel reports the total time rspec tests + file loading time. This results in --parallel reporting a few second run time on a new module, when without the flag it reports <0.5 seconds run time (but still takes a few seconds to finish).

      We should probably output two times for rspec tests. The CPU time that the rspec tests spent running and the total time of execution. For example,

      Evaluated 6 tests (system: 0.320675 seconds, real: 3.523 seconds): 0 failures, 0 pending.

      Attachments

        Activity

          People

            tim.sharpe Tim Sharpe
            austin.blatt Austin Blatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support