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

add handler for test code headers #191

Open
mariev opened this issue Aug 24, 2021 · 1 comment
Open

add handler for test code headers #191

mariev opened this issue Aug 24, 2021 · 1 comment

Comments

@mariev
Copy link
Collaborator

mariev commented Aug 24, 2021

add option to pass header values to markdown rendered from test code files via the test code name. include ability of user to pass a vector of headers when calling vt_file.

Example usage:

  • Option 1: from the test code file
vt_file(path, dynamic_referencing) # headers are pulled from test_that "desc" argument
  • Option 2: user specified
tc_files <- c(file1, file2, ...)
# user-specified header overrides test code desc.
vt_file(header = c(header1, header2, ...), tc_files, dynamic_referencing)
@mariev
Copy link
Collaborator Author

mariev commented Aug 26, 2021

from discussion today:

use syntax:

## HEADER NAME HERE ----

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant