•  
      request #18495 Stop jest from running duplicate tests
    Infos
    #18495
    Joris MASSON (jmasson)
    2021-01-04 13:43
    2021-01-04 12:51
    20043
    Details
    Stop jest from running duplicate tests

    Jest runs the same tests multiple times, for example :

    PASS document plugins/document/scripts/document/store/actions.test.js (11.374 s)
    PASS tracker plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.test.js (18.202 s)
    PASS tracker plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.test.js (12.655 s)
    PASS tracker plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.test.js (9.435 s)
    PASS tracker plugins/tracker/scripts/angular-artifact-modal/src/model/field-values-service.test.js (11 s)

    This behaviour appeared when we started symlinking plugins. In this case, each "depending" plugin runs Tracker tests again, resulting in 1 expected run and 3 supernumerary runs because AgileDashboard, TestManagement and CrossTracker search plugins all depend on Tracker plugin.

    We should fix our configuration to avoid those unintentional runs.

    Dev tools
    Empty
    Empty
    • [ ] enhancement
    • [x] internal improvement
    Empty
    Stage
    Joris MASSON (jmasson)
    Closed
    2021-01-04
    Attachments
    Empty
    References

    Follow-ups

    User avatar
    Thomas Gerbet (tgerbet)2021-01-04 13:43
    Integrated into Tuleap 12.3.99.129.

    Good catch 😢

    • Status changed from Under review to Closed
    • Connected artifacts
    • Close date set to 2021-01-04