zukeUnit function
void
zukeUnit(
- FutureOr body(), {
- required ZukeScenarioContract scenario,
- String? description,
- Set<
ControlId> provedControls = const {}, - Iterable<
String> provedImplementationSlots = const ['primary'], - String? caseId,
- String? testOn,
- Timeout? timeout,
- Object? skip,
- Object? tags,
- Map<
String, dynamic> ? onPlatform, - int? retry,
Registers a unit-oriented managed test with the stable Zuke defaults.
Unit tests are recorded as unit evidence, use the scenario ID as their
default case identity, and prove the primary implementation slot. Pass a
caseId when one scenario has several independent unit cases.
Implementation
void zukeUnit(
FutureOr<dynamic> Function() body, {
required ZukeScenarioContract scenario,
String? description,
Set<ControlId> provedControls = const {},
Iterable<String> provedImplementationSlots = const ['primary'],
String? caseId,
String? testOn,
test_api.Timeout? timeout,
Object? skip,
Object? tags,
Map<String, dynamic>? onPlatform,
int? retry,
}) {
zukeTest(
body,
scenario: scenario,
description: description,
evidenceTypes: const ['unit'],
provedControls: provedControls,
provedImplementationSlots: provedImplementationSlots,
caseId: caseId ?? scenario.id.value,
testOn: testOn,
timeout: timeout,
skip: skip,
tags: tags,
onPlatform: onPlatform,
retry: retry,
);
}