This function will generate Test Id's with the pattern 'TST-FOO-XXX', overwrite test documents to include these new IDs, and return a dataframe with the new TestIds column.

assign_test_ids(
  prefix,
  test_path = getOption("mrgvalprep.TEST_LOC"),
  overwrite = TRUE,
  first_id = 1
)

Arguments

prefix

character string. Prefix for TestIds; usually an acronym of 3 letters signifying the associated package.

test_path

path to where tests are written.

overwrite

(T/F) whether or not to overwrite test files with new test ids

first_id

integer. Desired starting point for test ids; must be greater than or equal to 1.