TestingConfig class

Represents the configuration for testing within a CI/CD pipeline.

This class encapsulates settings related to testing, including the testing framework used, the enabling and running of different types of tests (unit, integration, and end-to-end), and the code coverage threshold. It provides methods for converting between JSON and Dart objects for data persistence and serialization.

Constructors

TestingConfig({required String testingFramework, required bool enableUnitTests, required bool enableIntegrationTests, required bool enableE2ETests, required bool runUnitTests, required int coverageThreshold})
Creates a TestingConfig instance.
TestingConfig.fromJson(Map<String, dynamic> json)
Creates a TestingConfig instance from a JSON map.
factory

Properties

coverageThreshold → int
The minimum acceptable code coverage percentage.
final
enableE2ETests → bool
Whether end-to-end (E2E) tests are enabled for this configuration.
final
enableIntegrationTests → bool
Whether integration tests are enabled for this configuration.
final
enableUnitTests → bool
Whether unit tests are enabled for this configuration.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
runUnitTests → bool
Whether unit tests should be executed as part of the CI/CD pipeline.
final
testingFramework → String
The name of the testing framework used (e.g., "flutter_test", "jest").
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, dynamic>
Converts this TestingConfig instance to a JSON map.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited