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

Cleanup of test code #223

Closed
EeethB opened this issue Jan 22, 2024 · 3 comments · Fixed by #248
Closed

Cleanup of test code #223

EeethB opened this issue Jan 22, 2024 · 3 comments · Fixed by #248
Assignees
Labels
enhancement New feature or request

Comments

@EeethB
Copy link
Collaborator

EeethB commented Jan 22, 2024

We have really strong test coverage, but the tests have gotten a little messy in places. I think there's some cleanup we can do.

#200 (comment)

#200 (comment)

Please add links to other comments as needed for specific issues noticed!

@EeethB EeethB added the enhancement New feature or request label Jan 22, 2024
@EeethB
Copy link
Collaborator Author

EeethB commented Jan 22, 2024

#200 (comment)

@averissimo
Copy link
Collaborator

averissimo commented Jan 23, 2024

One more :-)

diff --git a/R/metadata.R b/R/metadata.R
index bf24ecd..645acc4 100644
--- a/R/metadata.R
+++ b/R/metadata.R
@@ -32,14 +32,12 @@
 #'
 #' xportr_metadata(adlb, metadata, "test")
 #'
-#' if (rlang::is_installed("magrittr")) {
-#'   library(magrittr)
-#'
-#'   adlb %>%
-#'     xportr_metadata(metadata, "test") %>%
-#'     xportr_type() %>%
-#'     xportr_order()
-#' }
+#' library(magrittr)
+#'
+#' adlb %>%
+#'   xportr_metadata(metadata, "test") %>%
+#'   xportr_type() %>%
+#'   xportr_order()

@bms63
Copy link
Collaborator

bms63 commented Feb 13, 2024

  • Look into suppresswarnings
  • Organization of the test code (bonus-time)
  • Subject headings for test - what is it testing and is it described in a nice and clear way

Cross-check with what Andre is doing here: #219

sadchla-codes added a commit that referenced this issue Feb 22, 2024
@sadchla-codes sadchla-codes linked a pull request Feb 22, 2024 that will close this issue
15 tasks
bms63 pushed a commit that referenced this issue Mar 14, 2024
* Closes #223 Test code clean up

* removing magrittr where it's not necessary

* Order test files

* updating documentations

* Fixing the code style

* fixing styler

* Fixing lintr indentations issues

* fixing Styler

* Move package `readxl` to suggest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants