pub struct TestGenerationConfig {Show 18 fields
pub format: TestFormat,
pub include_assertions: bool,
pub validate_body: bool,
pub validate_status: bool,
pub validate_headers: bool,
pub validate_timing: bool,
pub max_duration_ms: Option<u64>,
pub suite_name: String,
pub base_url: Option<String>,
pub ai_descriptions: bool,
pub llm_config: Option<LlmConfig>,
pub group_by_endpoint: bool,
pub include_setup_teardown: bool,
pub generate_fixtures: bool,
pub suggest_edge_cases: bool,
pub analyze_test_gaps: bool,
pub deduplicate_tests: bool,
pub optimize_test_order: bool,
}Expand description
Test generation configuration
Fields§
§format: TestFormatTest format to generate
include_assertions: boolInclude assertions for response validation
validate_body: boolInclude response body validation
validate_status: boolInclude status code validation
validate_headers: boolInclude header validation
validate_timing: boolInclude timing assertions
max_duration_ms: Option<u64>Maximum duration threshold in ms
suite_name: StringTest suite name
base_url: Option<String>Base URL for generated tests
ai_descriptions: boolUse AI to generate intelligent test descriptions
llm_config: Option<LlmConfig>LLM provider configuration (optional)
group_by_endpoint: boolGroup tests by endpoint
include_setup_teardown: boolInclude setup/teardown code
generate_fixtures: boolGenerate test data fixtures using AI
suggest_edge_cases: boolSuggest edge cases using AI
analyze_test_gaps: boolPerform test gap analysis
deduplicate_tests: boolDeduplicate similar tests
optimize_test_order: boolOptimize test execution order
Trait Implementations§
Source§impl Clone for TestGenerationConfig
impl Clone for TestGenerationConfig
Source§fn clone(&self) -> TestGenerationConfig
fn clone(&self) -> TestGenerationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TestGenerationConfig
impl Debug for TestGenerationConfig
Source§impl Default for TestGenerationConfig
impl Default for TestGenerationConfig
Source§impl<'de> Deserialize<'de> for TestGenerationConfig
impl<'de> Deserialize<'de> for TestGenerationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for TestGenerationConfig
impl RefUnwindSafe for TestGenerationConfig
impl Send for TestGenerationConfig
impl Sync for TestGenerationConfig
impl Unpin for TestGenerationConfig
impl UnwindSafe for TestGenerationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more