Skip to content

test: add unit tests for analyzer - #6

Merged
KokosP merged 1 commit into
KokosP:mainfrom
tanqdev:test/analyzer-unit-tests
Nov 13, 2026
Merged

KokosP merged 1 commit into
KokosP:mainfrom
tanqdev:test/analyzer-unit-tests

Conversation

@tanqdev

@tanqdev tanqdev commented Nov 13, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add pytest as a development dependency.
  • Add unit tests for analyze_commits.
  • Cover empty input, session grouping, gap boundaries, buffer handling, task-prefix detection, multi-day grouping, and time/earnings calculations.

Testing

  • pytest -v — 12 tests passed.
  • git diff --check — passed.

Closes #3

@KokosP KokosP closed this Nov 13, 2026
@KokosP KokosP reopened this Nov 13, 2026
@KokosP
KokosP merged commit 307a992 into KokosP:main Nov 13, 2026
3 checks passed
@KokosP

KokosP commented Nov 13, 2026

Copy link
Copy Markdown
Owner

Merged - thanks for the thorough coverage! CI is now in place as well, so these tests run on every PR.

@tanqdev

tanqdev commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

Merged - thanks for the thorough coverage! CI is now in place as well, so these tests run on every PR.

Glad to help.

@tanqdev
tanqdev deleted the test/analyzer-unit-tests branch November 14, 2026 15:29
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.

Add unit tests for analyzer.py

2 participants