Add configuration options for assertion generation
@@ -219,6 +219,9 @@ class Configuration(Serializable):
chromosome_length: int = 40
"""Maximum length of chromosomes during search"""
+ max_length_test_case = 2500
+ """The maximum number of statement in as test case (normal + assertion statements)"""
+
max_attempts: int = 1000
"""Number of attempts when generating an object before giving up"""
@@ -263,6 +266,9 @@ class Configuration(Serializable):
"""Should the duck-type analysis be used for type inference during test
generation?"""
+ generate_assertions: bool = True
+ """Should assertions be generated?"""
+
# Singleton instance of the configuration.
INSTANCE = Configuration(
