Skip to content

test: add comprehensive edge-case unit tests for jira-utils#1846

Merged
Priyanshu-byte-coder merged 2 commits into
Priyanshu-byte-coder:mainfrom
bhavyanjain3004:issue-1726
Jun 2, 2026
Merged

test: add comprehensive edge-case unit tests for jira-utils#1846
Priyanshu-byte-coder merged 2 commits into
Priyanshu-byte-coder:mainfrom
bhavyanjain3004:issue-1726

Conversation

@bhavyanjain3004
Copy link
Copy Markdown
Contributor

@bhavyanjain3004 bhavyanjain3004 commented Jun 1, 2026

Description

fixes #1726
This PR adds comprehensive edge-case unit test coverage for the jira-utils module to verify Jira integration utilities.

Changes

  • Added tests to check case-sensitivity and whitespace handling for statusCategory in categorizeStatus().
  • Added tests for calculateMetrics() to verify zero-duration intervals (where resolved and created times are equal), negative durations (resolved before created), and invalid date strings (which produce NaN).

@vercel
Copy link
Copy Markdown

vercel Bot commented Jun 1, 2026

@bhavyanjain3004 is attempting to deploy a commit to the PRIYANSHU DOSHI's projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions Bot added gssoc26 GSSoC 2026 contribution type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts) labels Jun 1, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 1, 2026

GSSoC Label Checklist 🏷️

@Priyanshu-byte-coder — please apply the appropriate labels before merging:

Difficulty (pick one):

  • level:beginner — 20 pts
  • level:intermediate — 35 pts
  • level:advanced — 55 pts
  • level:critical — 80 pts

Quality (optional):

  • quality:clean — ×1.2 multiplier
  • quality:exceptional — ×1.5 multiplier

Validation (required to score):

  • gssoc:approved — counts for points
  • gssoc:invalid / gssoc:spam / gssoc:ai-slop — does not score

Type labels (type:*) are auto-detected from files and title. Review and adjust if needed.
Points formula: (difficulty × quality_multiplier) + type_bonus

@github-actions github-actions Bot added the type:devops GSSoC type bonus: devops (+15 pts) label Jun 1, 2026
@Priyanshu-byte-coder Priyanshu-byte-coder added the level1 GSSoC Level 1 - Beginner (10 points) label Jun 2, 2026
@Priyanshu-byte-coder Priyanshu-byte-coder merged commit e82ba3a into Priyanshu-byte-coder:main Jun 2, 2026
10 checks passed
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

🎉 Merged! Thanks for contributing to DevTrack.

If the project has been useful to you, a ⭐ star on the repo is the easiest way to support it — it helps DevTrack get discovered by more developers.

Keep an eye on open issues for your next contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc26 GSSoC 2026 contribution level1 GSSoC Level 1 - Beginner (10 points) type:devops GSSoC type bonus: devops (+15 pts) type:feature GSSoC type bonus: new feature type:testing GSSoC type bonus: tests (+10 pts)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add unit tests for jira-utils module

2 participants