Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Unit Tests for Semantic Versioning Script #465

Open
4 tasks
Tracked by #463
aatmanvaidya opened this issue Jan 2, 2025 · 0 comments
Open
4 tasks
Tracked by #463

Add Unit Tests for Semantic Versioning Script #465

aatmanvaidya opened this issue Jan 2, 2025 · 0 comments

Comments

@aatmanvaidya
Copy link
Collaborator

aatmanvaidya commented Jan 2, 2025

The semantic versioning script is a critical part of the Feluda project, handling versioning for multiple Python packages in a monorepo setup. To ensure its reliability and maintainability, we need to add comprehensive unit tests for all functions in the script.

Link to the script - link

  • Write unit tests for each function in the script. Handle both cases where the function will pass and where will it fail
  • write the test at tests/scripts/ folder
  • The script requires a range of commits to be passed to them. We will have to create a way that allows the test to be written on dummy commits.
  • Finally, also write a end-to-end test for this, where all functions are used.

We can also think of using testing frameworks pytest alongisde uv, instead of just using the python in-build unittest framework.

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

No branches or pull requests

2 participants