allure_dart_commons 1.3.0 copy "allure_dart_commons: ^1.3.0" to clipboard
allure_dart_commons: ^1.3.0 copied to clipboard

Framework-agnostic Allure lifecycle and result primitives for Dart.

allure_dart_commons #

pub package

allure_dart_commons contains the framework-agnostic Allure model, lifecycle, runtime message, and writer primitives shared by the Dart test adapters in this workspace.

Use this package when you need low-level Allure result generation without the package:test or Flutter adapter layers.

Advanced APIs #

  • AllureLifecycleListener can observe lifecycle events and mutate a TestResult before it is written.
  • AllureExecutorInfo writes executor.json sidecar metadata.
  • AllureStatusDetails preserves known, muted, and flaky classifications.
  • addAttachmentStreamToRoot and addPreparedAttachmentToRoot write large or late artifacts before the result references them.
  • AllureConfig loads checked-in allure-dart.yaml/allure-dart.yml defaults for resultsDir, global labels, and run-level environment properties.

All result and attachment writes stage into .allure-write-*.tmp in the results directory, apply a durable flush (fsync / FlushFileBuffers, plus macOS F_FULLSYNC when available), then rename to the final name so downstream report generation does not see partially written payloads. Readers such as Allure Report / allure run should ignore incomplete *.tmp staging names if they scan a live results directory.

0
likes
160
points
8.18k
downloads

Documentation

API reference

Publisher

verified publisherallurereport.org

Weekly Downloads

Framework-agnostic Allure lifecycle and result primitives for Dart.

Repository (GitHub)
View/report issues
Contributing

License

Apache-2.0 (license)

Dependencies

crypto, ffi, mime, path, uuid, yaml

More

Packages that depend on allure_dart_commons