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

Code tests, update standards #229

Merged
merged 61 commits into from
Jun 15, 2024
Merged

Code tests, update standards #229

merged 61 commits into from
Jun 15, 2024

Conversation

e100
Copy link
Collaborator

@e100 e100 commented Jun 8, 2024

Changed to using the current standard pyproject.yaml
Added pytest to test code and report coverage
Updated Makefile to fix flaws and add new features.
Moved code into src folder since this is the current standard layout

Copy link

github-actions bot commented Jun 8, 2024

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  src/pyefis
  __init__.py 1
  cfg.py 1-143
  main.py 34, 227
  version.py 1-3
  src/pyefis/common
  __init__.py 20-23
  src/pyefis/hmi
  actionclass.py 42
  functions.py 22, 33
  src/pyefis/instruments/NumericalDisplay
  __init__.py 23, 53-69, 77-110, 115-123, 146-152, 157-161, 176-177, 243-244, 249-260, 266-269, 274, 280-283
  src/pyefis/instruments/airspeed
  __init__.py 33, 48, 55-69, 94, 99-108, 119-136, 147-150, 157-160, 168-171, 183, 222-228, 233, 252-272, 287, 297, 302, 309-317, 325, 335, 348-351, 362-376, 384, 393-396, 411-412, 432-438, 466, 479-480, 509-510
  src/pyefis/instruments/gauges
  abstract.py 161-164, 185-188
  arc.py 198
  numeric.py 85-93
  verticalBar.py 293, 307
  src/pyefis/instruments/helpers
  __init__.py 1-63
  src/pyefis/instruments/misc
  __init__.py 30, 51-56, 122, 130, 180, 220-221
  src/pyefis/screens
  screenbuilder.py 935-940, 947-954
Project Total  

This report was generated by python-coverage-comment-action

e100 added 28 commits June 12, 2024 21:12
…t arguments are passed to it. Then we can assert that they were called as expected
…est can start with a clean database unmodified by other tests
…nabled without setting normalize_range first
@e100
Copy link
Collaborator Author

e100 commented Jun 15, 2024

With no feedback I am proceeding with merging this so I can continue with this and improving the CI actions.

@e100 e100 merged commit 075a1b7 into makerplane:master Jun 15, 2024
1 check 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.

1 participant