Skip to content

Improve code coverage by unit tests - #225

Merged
cbeleites merged 121 commits into
developfrom
feature/207-improve-coverage
Aug 4, 2020
Merged

cbeleites merged 121 commits into
developfrom
feature/207-improve-coverage

Conversation

@GegznaV

@GegznaV GegznaV commented Jul 25, 2020 •

Copy link
Copy Markdown
Collaborator

Improves code coverage (addresses #207) and documentation (partially addresses #151).

GegznaV added 30 commits July 25, 2020 03:52
Otherwise R-CMD-check fails
Data is totally deterministic with no element of randomness.
Created firstly for visual testing.
Separate functions make code of unit tests cleaner.
`vdiffr` is an extension of `testhat` for plotting functions.
Comment thread hyperSpec/R/bind.R Resolved
Comment thread hyperSpec/R/bind.R Resolved
@GegznaV

GegznaV commented Aug 2, 2020

Copy link
Copy Markdown
Collaborator Author

@cbeleites, either fixed, partially addressed of just commented on your remarks. Please review them again.


On:

I'm a bit concerned that there are a number of tests that make automatic code coverage measurements look much better without adding security about code correctness - but the apparently better coverage makes it more difficult to see where more tests are needed.

In general, I think that there should not be only shallow (expect_silent()-only) tests, but I didn't have enough time to write more appropriate tests.

This was my fault that I didn't give correct messages for those shallow tests. Now some tests are fixed and in other places appropriate FIXME or TODO tags are added to attract attention to the fact that the tests are incomplete. I need some of those tests (even though they are not perfect) to quickly check if the most basic functionality of the functions is not broken in the upcoming pull requests of mine. After those PRs are accepted, I can remove the shallow unit tests, if you wish (or someone else could upgrade them).

@GegznaV
GegznaV requested a review from cbeleites August 2, 2020 09:45
@cbeleites
cbeleites merged commit 501c3df into develop Aug 4, 2020
@cbeleites
cbeleites deleted the feature/207-improve-coverage branch August 4, 2020 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Topic: unit test 1️⃣ Unit tests and code coverage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants