brstest icon indicating copy to clipboard operation
brstest copied to clipboard

plugin architecture for additional assertions

Open jamestalmage opened this issue 10 years ago • 0 comments

allow users to create reusable assertions by calls to some global method

addAssertion("assertIsAwesome", function(args): ... : end function )

This would populate some global associative array with methods that would get copied to each new t parameter passed to test. It should fail if users are accidentally overriding an existing method (maybe an optional force parameter to allow overriding?). It would also require some documentation on how to correctly fail an assertion so behavior remains consistent with other methods.

jamestalmage avatar Mar 22 '15 18:03 jamestalmage