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: Add tests to improve coverage #195

Merged
merged 32 commits into from
May 19, 2024
Merged

Conversation

ldevillez
Copy link
Collaborator

@ldevillez ldevillez commented May 5, 2024

Description

The tests need to cover the whole code to be really useful. It is also a step toward releasing svg2tikz directly with inkscape.
Fixes #187 and also #99 (tests could be reworked but it will be okay for now).

The test github action is modify to show the coverage.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Coverage was tested with:

python3 -m coverage run -m unittest

And analyzed with:

python3 -m coverage html

New tested were tested visually.

Checklist:

  • My code follows the style guidelines of this project (black/pylint)
  • I have updated the changelog with the corresponding changes
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

@ldevillez ldevillez linked an issue May 5, 2024 that may be closed by this pull request
@ldevillez
Copy link
Collaborator Author

Do not merge before #194 for an easier integration

Copy link

github-actions bot commented May 14, 2024

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
1107 1100 99% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
svg2tikz/init.py 100% 🟢
svg2tikz/tikz_export.py 99% 🟢
tests/test_complete_files.py 99% 🟢
tests/test_geometrical_functions.py 100% 🟢
tests/test_parsing.py 100% 🟢
tests/test_svg2tikz.py 100% 🟢
tests/test_tikz_path_exporter.py 100% 🟢
tests/test_utility_functions.py 100% 🟢
TOTAL 100% 🟢

updated for commit: e0c9fff by action🐍

@ldevillez ldevillez merged commit 7eef4c8 into master May 19, 2024
4 checks passed
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.

Improve test coverage
1 participant