Page MenuHomePhabricator

Write test cases for remaining vuex store operations
Closed, ResolvedPublic

Description

Currently, there are test cases only for the Vuex stores search and locale in files search.spec.js and locale.spec.js, respectively. There need to be similar test cases written for Vuex stores: users, tools, auditlogs, crawler, and api.

Event Timeline

Change 679592 had a related patch set uploaded (by Srishakatux; author: Srishakatux):

[wikimedia/toolhub@main] Test cases for remaining Vuex store operations

https://gerrit.wikimedia.org/r/679592

Change 679592 merged by jenkins-bot:

[wikimedia/toolhub@main] Test cases for remaining Vuex store operations

https://gerrit.wikimedia.org/r/679592

Looking so much better!

=============================== Coverage summary ===============================
Statements   : 78% ( 390/500 )
Branches     : 61.88% ( 138/223 )
Functions    : 77.22% ( 139/180 )
Lines        : 77.82% ( 386/496 )
================================================================================

Still not ready to turn on 85% coverage enforcement in CI, but getting close. :)

Change 685610 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] js: Set nyc code coverage to enforcement mode

https://gerrit.wikimedia.org/r/685610

Change 685610 merged by jenkins-bot:

[wikimedia/toolhub@main] js: Set nyc code coverage to enforcement mode

https://gerrit.wikimedia.org/r/685610