An error occurred fetching the project authors.
  1. 07 Sep, 2016 3 commits
    • Timothy Andrew's avatar
      Consolidate all cycle analytics helper methods. · 0a767f7b
      Timothy Andrew authored
      1. Move the test generation to `CycleAnalyticsHelpers::TestGeneration`
      
      2. Move all helper methods (previously placed in each individual spec
         file) to `CycleAnalyticsHelpers`
      0a767f7b
    • Timothy Andrew's avatar
      Test the `production` cycle analytics phase. · de483c68
      Timothy Andrew authored
      Add a `before_end_fn` option to the code that generates cycle analytics
      specs. `before_end_fn` is called before the end conditions are. Used for
      data setup that needs to be called after the start conditions and before
      the end conditions.
      de483c68
    • Timothy Andrew's avatar
      Test the `staging` cycle analytics phase. · dd112ef1
      Timothy Andrew authored
      Remove overlap from the "start + end" durations in the happy test
      case. For the `staging` phase, the end time is the _first_ deployment
      that happens after the MR merge.
      
      If we have 5 MRs where the `start_time`s (merge time) are the
      same, and all the `end_time`s (deploy to production) a few days from
      now, only the earliest deploy will get picked up, because that
      consitutes a deploy for _all_ the MRs.
      
      We fix this by removing overlap. Every `start_time` is now generated to
      be _after_ the preceding `end_time`.
      dd112ef1