Add unit tests #3

Closed
opened 2 years ago by steko · 4 comments
steko commented 2 years ago
Owner

Tests are necessary to improve the quality of code and make development easier.

The reference documentation for writing tests with:

Matplotlib tests are based on pytest.

Tests are necessary to improve the quality of code and make development easier. The reference documentation for writing tests with: - Matplotlib is at <https://matplotlib.org/devel/testing.html> - Numpy is at <https://docs.scipy.org/doc/numpy/reference/routines.testing.html> Matplotlib tests are based on [pytest](https://docs.pytest.org/en/latest/).
steko added the
enhancement
label 2 years ago
steko self-assigned this 2 years ago
steko added this to the v0.5.0 milestone 2 years ago
Poster
Owner

First round in a25887783c covering base core functionality.

First round in a25887783c covering base core functionality.
Poster
Owner

More tests for the command line app in 9d5c7fe330

More tests for the command line app in 9d5c7fe330
Poster
Owner

The current coverage is as follows:

----------- coverage: platform linux, python 3.8.3-final-0 -----------
Name                  Stmts   Miss  Cover
-----------------------------------------
iosacal/__init__.py       3      0   100%
iosacal/cli.py           32      0   100%
iosacal/core.py         131     50    62%
iosacal/hpd.py           79     14    82%
iosacal/plot.py         129     29    78%
iosacal/spd.py          109    109     0%
iosacal/text.py           8      0   100%
-----------------------------------------
TOTAL                   491    202    59%
The current coverage is as follows: ``` ----------- coverage: platform linux, python 3.8.3-final-0 ----------- Name Stmts Miss Cover ----------------------------------------- iosacal/__init__.py 3 0 100% iosacal/cli.py 32 0 100% iosacal/core.py 131 50 62% iosacal/hpd.py 79 14 82% iosacal/plot.py 129 29 78% iosacal/spd.py 109 109 0% iosacal/text.py 8 0 100% ----------------------------------------- TOTAL 491 202 59% ```
Poster
Owner

Let's close this issue and we will have separate issues tracking more tests for plots in future releases.

Let's close this issue and we will have separate issues tracking more tests for plots in future releases.
steko closed this issue 2 months ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.