Skip to content

Refactor test data creation across multiple test classes using DocgenTestDataFactory#25

Merged
raghurankawat merged 2 commits intomainfrom
feature/centralise-test-data-creation
Jan 7, 2026
Merged

Refactor test data creation across multiple test classes using DocgenTestDataFactory#25
raghurankawat merged 2 commits intomainfrom
feature/centralise-test-data-creation

Conversation

@raghurankawat
Copy link
Copy Markdown
Contributor

No description provided.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

Coverage after merging feature/centralise-test-data-creation into main will be

84.41%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   server.ts58.90%80%25%60%100–101, 106, 108, 112–113, 115, 117, 120–121, 32, 73–75, 77, 79–80, 85–86, 91–93, 95–96
src/auth
   aad.ts77.14%67.44%93.75%79.01%110–112, 137, 142–143, 146, 149, 154–156, 164, 164, 164–165, 167, 197, 199, 199, 199–200, 202, 208, 37, 82–84, 86–88, 90
   index.ts85.71%100%66.67%100%
src/config
   index.ts92.05%97.62%100%85.37%16, 16–19, 21, 25
   secrets.ts93.98%80%100%100%132–133, 188, 5, 83
src/convert
   soffice.ts88%62.96%76.92%95.45%125, 277, 282, 282, 333–334, 358–360, 398, 421, 428, 51, 68, 70
src/errors
   base.ts41.38%28.57%50%44.44%30, 57, 70, 78, 82, 82, 84–85, 88, 95, 95–97, 97–98
   classes.ts42.33%17.39%34.78%48.72%100, 108–110, 112–113, 142, 151–153, 155–156, 172, 196–198, 200–201, 209–211, 213–214, 226–228, 230–231, 239–241, 243–244, 252–254, 256–257, 26, 265–267, 269, 27, 270, 28, 282–284, 286–287, 295–297, 299, 30, 300, 31, 312–314, 316–317, 325–327, 329–330, 52–54, 56–57, 73, 86, 95–97, 99
   codes.ts100%100%100%100%
   handler.ts30.50%11.76%100%44.12%100, 100, 100, 100, 100–102, 102, 102, 104, 104, 104, 104–105, 109, 109–111, 111, 111, 113, 113, 113, 113–114, 118, 118, 118, 118, 118–119, 121, 121, 121, 121–122, 126, 193–194, 211–214, 23, 33, 33, 33–34, 34–35, 35, 35, 35, 39, 42, 55, 57, 59–62, 70, 73, 73, 73, 73, 73–74, 74, 74, 76, 76, 76, 76, 76–77, 77, 77, 79, 79, 79, 79–80, 84, 84, 84, 84–86, 86, 86, 90, 90–91, 91, 91, 91, 96
   index.ts69.09%100%39.29%100%
src/obs
   index.ts84.62%100%66.67%100%
   insights.ts86.33%79.31%71.43%89.32%101–102, 165, 172, 189, 192, 206, 214, 225, 228, 294, 302, 309, 48, 91–93
src/plugins
   auth.ts77.33%70.83%100%79.17%127, 141, 141, 141–142, 144, 49, 52, 52–54, 58–59, 64, 82, 96–97
src/routes
   auth-test.ts100%100%100%100%
   generate.ts86.05%69.44%100%92.31%169–170, 176–177, 188–189, 193–194, 201, 206, 271–272, 368, 413, 426, 480, 484, 484
   health.ts88.24%100%100%83.78%43–44, 57–58, 71–72
   worker.ts70.37%50%100%75%112, 114–115, 115, 56, 58–59, 59
src/sf
   api.ts97.94%95.31%100%99.13%157, 157, 208, 280
   auth.ts90.70%82.35%100%93.85%104, 129–130, 213, 237–238, 276, 295, 317, 393–394, 396–397, 399–400, 408, 422–423, 423, 423
   files.ts78.87%60%100%85.42%227–229, 234, 234, 243, 252–253, 253, 59–60, 76–77, 85–86
   index.ts61.11%100%12.50%100%
src/templates
   cache.ts100%100%100%100%
   concatenate.ts86.05%64.71%100%90.16%139, 142, 142, 147, 170–171, 185, 204, 221–222, 81–82
   index.ts54.55%100%28.57%100%
   merge.ts88.24%85.29%100%89.13%117–118, 150–151, 76, 88–89, 91–92, 97
   service.ts100%100%100%100%
src/utils
   correlation-id.ts81.82%57.14%100%91.67%22, 22, 22–23
   logger.ts57.14%25%100%62.50%14, 14, 14, 14–15, 19
src/worker
   index.ts66.67%100%50%100%
   poller.ts82.79%69.74%95.24%86.26%103–104, 108, 127, 127, 157–158, 164–165, 167, 170, 179–180, 219–220, 235, 246–248, 273–274, 296, 298–299, 309–310, 346–347, 35–36, 427–428, 447, 455, 472, 472–475, 481, 492, 512, 535, 550, 565–566, 582, 600–601, 88–90

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 6, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 6, 2026

E2E Test Results

✅ Tests completed. View the Playwright Report for details.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 7, 2026

Coverage after merging feature/centralise-test-data-creation into main will be

84.41%

Coverage Report
FileStmtsBranchesFuncsLinesUncovered Lines
src
   server.ts58.90%80%25%60%100–101, 106, 108, 112–113, 115, 117, 120–121, 32, 73–75, 77, 79–80, 85–86, 91–93, 95–96
src/auth
   aad.ts77.14%67.44%93.75%79.01%110–112, 137, 142–143, 146, 149, 154–156, 164, 164, 164–165, 167, 197, 199, 199, 199–200, 202, 208, 37, 82–84, 86–88, 90
   index.ts85.71%100%66.67%100%
src/config
   index.ts92.05%97.62%100%85.37%16, 16–19, 21, 25
   secrets.ts93.98%80%100%100%132–133, 188, 5, 83
src/convert
   soffice.ts88%62.96%76.92%95.45%125, 277, 282, 282, 333–334, 358–360, 398, 421, 428, 51, 68, 70
src/errors
   base.ts41.38%28.57%50%44.44%30, 57, 70, 78, 82, 82, 84–85, 88, 95, 95–97, 97–98
   classes.ts42.33%17.39%34.78%48.72%100, 108–110, 112–113, 142, 151–153, 155–156, 172, 196–198, 200–201, 209–211, 213–214, 226–228, 230–231, 239–241, 243–244, 252–254, 256–257, 26, 265–267, 269, 27, 270, 28, 282–284, 286–287, 295–297, 299, 30, 300, 31, 312–314, 316–317, 325–327, 329–330, 52–54, 56–57, 73, 86, 95–97, 99
   codes.ts100%100%100%100%
   handler.ts30.50%11.76%100%44.12%100, 100, 100, 100, 100–102, 102, 102, 104, 104, 104, 104–105, 109, 109–111, 111, 111, 113, 113, 113, 113–114, 118, 118, 118, 118, 118–119, 121, 121, 121, 121–122, 126, 193–194, 211–214, 23, 33, 33, 33–34, 34–35, 35, 35, 35, 39, 42, 55, 57, 59–62, 70, 73, 73, 73, 73, 73–74, 74, 74, 76, 76, 76, 76, 76–77, 77, 77, 79, 79, 79, 79–80, 84, 84, 84, 84–86, 86, 86, 90, 90–91, 91, 91, 91, 96
   index.ts69.09%100%39.29%100%
src/obs
   index.ts84.62%100%66.67%100%
   insights.ts86.33%79.31%71.43%89.32%101–102, 165, 172, 189, 192, 206, 214, 225, 228, 294, 302, 309, 48, 91–93
src/plugins
   auth.ts77.33%70.83%100%79.17%127, 141, 141, 141–142, 144, 49, 52, 52–54, 58–59, 64, 82, 96–97
src/routes
   auth-test.ts100%100%100%100%
   generate.ts86.05%69.44%100%92.31%169–170, 176–177, 188–189, 193–194, 201, 206, 271–272, 368, 413, 426, 480, 484, 484
   health.ts88.24%100%100%83.78%43–44, 57–58, 71–72
   worker.ts70.37%50%100%75%112, 114–115, 115, 56, 58–59, 59
src/sf
   api.ts97.94%95.31%100%99.13%157, 157, 208, 280
   auth.ts90.70%82.35%100%93.85%104, 129–130, 213, 237–238, 276, 295, 317, 393–394, 396–397, 399–400, 408, 422–423, 423, 423
   files.ts78.87%60%100%85.42%227–229, 234, 234, 243, 252–253, 253, 59–60, 76–77, 85–86
   index.ts61.11%100%12.50%100%
src/templates
   cache.ts100%100%100%100%
   concatenate.ts86.05%64.71%100%90.16%139, 142, 142, 147, 170–171, 185, 204, 221–222, 81–82
   index.ts54.55%100%28.57%100%
   merge.ts88.24%85.29%100%89.13%117–118, 150–151, 76, 88–89, 91–92, 97
   service.ts100%100%100%100%
src/utils
   correlation-id.ts81.82%57.14%100%91.67%22, 22, 22–23
   logger.ts57.14%25%100%62.50%14, 14, 14, 14–15, 19
src/worker
   index.ts66.67%100%50%100%
   poller.ts82.79%69.74%95.24%86.26%103–104, 108, 127, 127, 157–158, 164–165, 167, 170, 179–180, 219–220, 235, 246–248, 273–274, 296, 298–299, 309–310, 346–347, 35–36, 427–428, 447, 455, 472, 472–475, 481, 492, 512, 535, 550, 565–566, 582, 600–601, 88–90

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jan 7, 2026

E2E Test Results

✅ Tests completed. View the Playwright Report for details.

@raghurankawat raghurankawat merged commit 0bf27b0 into main Jan 7, 2026
4 checks passed
@raghurankawat raghurankawat deleted the feature/centralise-test-data-creation branch January 7, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant