gramener / gramener/eda

Add basic test cases

Open
#1 0 comments 0 reactions 1 assignee Claimed by @nolancardozo View on GitHub
tests
Dominant language
R
Stars
5
Forks
0
PR merge metrics
No merged PRs in 30d

Description

- [ ] Create a `data/samples/` directory with a `sample.csv` and `sample.xlsx` file
- [ ] Follow [Hadley Wickham's instructions](http://r-pkgs.had.co.nz/tests.html) to create a test case structure
- [ ] Write a test case for `read_eda` for each file in the `data/samples/` directory. Ensure that the file is read without errors and that the results have the correct number of rows, column and column names
- [ ] Write a test case for `eda_metadata` for each file in the `data/samples/` directory. Compare the results against a pre-defined data structure stored as a separate file in the `data/samples/` directory as `sample.csv.meta.yaml` and `sample.xslx.meta.yaml`. Use the attached `meta.yaml` as a sample
- [ ] Ensure that the tests pass

[meta.zip](https://github.com/gramener/eda/files/1546822/meta.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.