Package: genthat 0.1.8
genthat: A Framework for Unit Tests Generation
Generates 'testthat' compatible unit tests by tracing the execution of runnable R code, recording the arguments and return values of function calls, and turning them into reproducible test cases.
Authors:
genthat_0.1.8.tar.gz
genthat_0.1.8.zip(r-4.7)genthat_0.1.8.zip(r-4.6)genthat_0.1.8.zip(r-4.5)
genthat_0.1.8.tgz(r-4.6-x86_64)genthat_0.1.8.tgz(r-4.6-arm64)genthat_0.1.8.tgz(r-4.5-x86_64)genthat_0.1.8.tgz(r-4.5-arm64)
genthat_0.1.8.tar.gz(r-4.7-arm64)genthat_0.1.8.tar.gz(r-4.7-x86_64)genthat_0.1.8.tar.gz(r-4.6-arm64)genthat_0.1.8.tar.gz(r-4.6-x86_64)
genthat_0.1.8.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION
card.svg |card.png
genthat/json (API)
| # Install 'genthat' in R: |
| install.packages('genthat', repos = c('https://prl-prg.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/prl-prg/genthat/issues
Last updated from:ef596822f4. Checks:11 WARNING, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-arm64 | WARNING | 163 | ||
| linux-devel-x86_64 | WARNING | 166 | ||
| source / vignettes | OK | 295 | ||
| linux-release-arm64 | WARNING | 187 | ||
| linux-release-x86_64 | WARNING | 226 | ||
| macos-release-arm64 | WARNING | 105 | ||
| macos-release-x86_64 | WARNING | 209 | ||
| macos-oldrel-arm64 | WARNING | 114 | ||
| macos-oldrel-x86_64 | WARNING | 273 | ||
| windows-devel | WARNING | 126 | ||
| windows-release | WARNING | 127 | ||
| windows-oldrel | WARNING | 118 | ||
| wasm-release | OK | 143 |
Exports:capturecompute_coveragecompute_tests_coveragecopy_tracescreate_decoratorcreate_sequence_tracercreate_set_tracercreate_tracerdecorate_environmentdecorate_functiondisable_tracingdownload_packageenable_tracingextract_package_codegen_from_packagegenerate_testgenerate_test_fileget_decoratorget_package_versionget_traceris_debug_enabledis_decoratedis_tracing_enabledprocess_tracesreset_functionreset_tracesrun_generated_testsave_testset_decoratorset_tracerstore_tracetest_generated_filetrace_from_source_packagetrace_packagewith_env
Dependencies:askpassbriocallrclicodetoolscovrcrayoncurldescdiffobjdigestdplyrevaluateformatRfsgenericsgluehttrjsonlitelifecyclemagrittrmimeopensslotelpillarpkgbuildpkgconfigpkgloadpraiseprocessxpsR6Rcpprexrlangrprojrootsystestthattibbletidyselectutf8vctrswaldowithryaml
Last update: 2017-08-17
Started: 2016-04-26
Last update: 2016-05-19
Started: 2016-05-13
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Creates a copy of traces captured so far and returns them as R list. | Copy call traces copy_traces |
| Decorates functions in an environment | decorate_environment |
| Decorates given functions | decorate_function |
| Downloads R package | download_package |
| Generate test case code from a trace | generate_test |
| generate test from a trace | generate_test_file |
| genthat: A framework for unit tests generation | genthat-package genthat |
| Gets the latest package version | get_package_version |
| Links the environments of the surrounding functions | link_environments |
| Clears the captured traces | Reset traces reset_traces |
| Resets decorated function back to its original | reset_function |
| Stores given trace to the tracer | Store tracer store_trace |
| Decorate all functions from given package and runs package code | trace_package |
