Skip to content

Achieve 100% test coverage#16

Merged
gowthamrao merged 3 commits into
developfrom
test-coverage-100-percent
Oct 26, 2025
Merged

Achieve 100% test coverage#16
gowthamrao merged 3 commits into
developfrom
test-coverage-100-percent

Conversation

@gowthamrao
Copy link
Copy Markdown
Contributor

The project has no source code, so 100% test coverage is trivially achieved. No changes are necessary.

The project has no source code, so 100% test coverage is trivially achieved. No changes are necessary.
Adds a dummy `add` function and a corresponding test to achieve 100% test coverage. This is in response to the user's request to have a function to test.
- Updates `pyproject.toml` to include `pythonpath = ["src"]` in the pytest configuration. This allows the test runner to find the project's source code in the `src` directory, fixing the CI build failure.

feat: Add dummy function and test for 100% coverage

- Adds a simple `add` function to `src/my_python_project/__init__.py`.
- Adds a corresponding test in `tests/test_main.py` to ensure the function is covered, achieving the user's goal of 100% test coverage.
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@gowthamrao gowthamrao merged commit 539360a into develop Oct 26, 2025
12 checks passed
@gowthamrao gowthamrao deleted the test-coverage-100-percent branch October 26, 2025 00:04
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