-
Notifications
You must be signed in to change notification settings - Fork 440
Closed
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: HighBroken behavior in specific environments like in parallel mode or only on some operating systemsBroken behavior in specific environments like in parallel mode or only on some operating systemsType: Enhancement
Milestone
Description
It would be nice to be able to register test functions at runtime, in addition to the @test
preprocessor behavior. Something like:
bats::register_test is_prime 2 true
bats::register_test is_prime 3 true
bats::register_test is_prime 4 false
is_prime() { .... }
#241 is closely related; it's possible implementing that would address this need. Alternatively, implementing this could be sufficient for users to construct their own parameterization on top. I'm not sure we need both features or not, but I can see them both being useful.
github-julien-pie, DomantasGiedraitis, ahmubashshir, ramsey, ieroNo47 and 3 more
Metadata
Metadata
Assignees
Labels
Component: Bash CodeEverything regarding the bash codeEverything regarding the bash codePriority: HighBroken behavior in specific environments like in parallel mode or only on some operating systemsBroken behavior in specific environments like in parallel mode or only on some operating systemsType: Enhancement