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-Testing with {httptest} #42

Open
GregorDeCillia opened this issue Mar 6, 2023 · 0 comments
Open

Unit-Testing with {httptest} #42

GregorDeCillia opened this issue Mar 6, 2023 · 0 comments
Assignees
Labels
API CI/CD feature New feature or request
Milestone

Comments

@GregorDeCillia
Copy link
Contributor

There is already a first attempt to include unit tests for the STATcube API using {httptest} in #40 . The basic idea is to have a way to test the parsers and print methods for sc_table() and friends when submitting the package to CRAN.

One important question here is which cubes/databases should be used in the tests. One reccomendation is the "Gemeindedaten (Demo)" databse. However, in order to maximize code-coverage, some databases with annotations and missing values would be required. Unfortunately, the "Gemeindedaten (Demo)" database only provides missings/annotations of the kind "X: cross tabulation not allowed". Another useful thing would be to have different types of time variables (half year, month, week, quarter, year)

Canidate databases

  • Foreign Trade includes annotations "T: Total Suppression" and "G: Disclosure control".
  • LFS inclues annotations "S: samping error" and "N: value does not make sense" which are special annotations with underlying values.
  • This tourism database contains several types of time variables with a hierarchy.
@GregorDeCillia GregorDeCillia added feature New feature or request CI/CD API labels Mar 6, 2023
@GregorDeCillia GregorDeCillia added this to the Version 1.0 milestone Mar 6, 2023
@GregorDeCillia GregorDeCillia self-assigned this Mar 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API CI/CD feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant