TestingConfig constructor

TestingConfig({
  1. required String testingFramework,
  2. required bool enableUnitTests,
  3. required bool enableIntegrationTests,
  4. required bool enableE2ETests,
  5. required bool runUnitTests,
  6. required int coverageThreshold,
})

Creates a TestingConfig instance.

All parameters are required:

  • testingFramework: The name of the testing framework used (e.g., "flutter_test", "jest").
  • enableUnitTests: Whether unit tests are enabled.
  • enableIntegrationTests: Whether integration tests are enabled.
  • enableE2ETests: Whether end-to-end (E2E) tests are enabled.
  • runUnitTests: Whether to execute unit tests as part of the pipeline.
  • coverageThreshold: The minimum acceptable code coverage percentage.

Implementation

TestingConfig({
  required this.testingFramework,
  required this.enableUnitTests,
  required this.enableIntegrationTests,
  required this.enableE2ETests,
  required this.runUnitTests,
  required this.coverageThreshold,
});