testWriteTestFile
Write a Test File with Metadata Comments

Description

Write a test file with metadata comments, in the form "## <Tag>: ", at the start of the file.

Usage

testWriteTestFile(data, file)

Arguments

data A named list, typically the output of testParseTestFile or testFixTags. Each named item corresponds to a metadata comment. attr(data,"code") contains the lines of text in the non-metadata part of the file.
file The file to create and write to. Its basename should match data$TestName.
Value
Currently no useful value is returned, just NULL.
Author
Bill Dunlap, TIBCO Software Inc.
References
Test Authoring Guidelines and Convention. http://emea-got-moss01.emea.tibco.com/engineering/projectsites/rosebud/Shared%20Documents/Test%20Authoring%20Guidelines%20and%20Conventions.docx
See Also
testCreateFileTemplate
Examples
  ## Not run: 
     # The following is essentially testCreateTemplateFile when
     # there is no existing test file to fix up.
     testWriteTestFile(testFixTags(list(TestName="myTest.t",Package="myPkg")), "myTest.t")
  
## End(Not run)
Package assertionTest version 6.1.1-7
Package Index