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

Unit tests #17

Closed
wants to merge 7 commits into from
Closed

Unit tests #17

wants to merge 7 commits into from

Conversation

CasperWA
Copy link
Collaborator

@CasperWA CasperWA commented Sep 7, 2023

Closes #11
Closes #2

Add unit tests using the pytest framework.

The tests are run through a new CI job, which also uploads a code coverage report to codecov.io, see app.codecov.io/gh/SINTEF/soft7.

As a minimum, before making this PR ready for review, I want some basic unit tests for:

  • factories/dataspace_factory.py
  • factories/datasource_factory.py

When tests for dataspace_factory.py have been put in place, issue #15 can be addressed, and it should be immediately apparent if any changes introduce a degradation of the expected behaviour.

Also, update pre-commit hooks.
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2023

Codecov Report

❗ No coverage uploaded for pull request base (main@84d8437). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #17   +/-   ##
=======================================
  Coverage        ?   16.02%           
=======================================
  Files           ?       12           
  Lines           ?      387           
  Branches        ?        0           
=======================================
  Hits            ?       62           
  Misses          ?      325           
  Partials        ?        0           
Flag Coverage Δ
pytest 16.02% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

@CasperWA CasperWA linked an issue Sep 7, 2023 that may be closed by this pull request
@CasperWA
Copy link
Collaborator Author

The work on this has opened my eyes to the fact that the various parts of this repository really should be looked at again, possibly with a new approach to what it should actually contain - and do.

@CasperWA CasperWA mentioned this pull request Oct 19, 2023
4 tasks
@CasperWA CasperWA changed the base branch from main to develop July 2, 2024 13:58
@CasperWA
Copy link
Collaborator Author

CasperWA commented Jul 5, 2024

Closing as these changes are either already implemented through other PRs or are outdated.

@CasperWA CasperWA closed this Jul 5, 2024
@CasperWA CasperWA deleted the cwa/close-11-unittests branch July 5, 2024 13:05
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.

Write up unit tests github actions for unittesting
2 participants