Skip to content

v1.2.0 TemplatedCustomNamer

Latest
Compare
Choose a tag to compare
@hownowstephen hownowstephen released this 12 Feb 18:31

It is now easier to create a custom namer

func TestTemplatedCustomNamer(t *testing.T) {
	custom := CreateTemplatedCustomNamerCreator("{TestSourceDirectory}/{ApprovalsSubdirectory}/{TestFileName}.{TestCaseName}.custom.{ApprovedOrReceived}.{FileExtension}")
	VerifyString(t, "Hello", Options().ForFile().WithNamer(custom))
}

Breaking Changes

  • We have removed the original ApprovalName namer, this should only affect people who are customizing the namer

Full Changelog: v1.1.1...v1.2.0