pub enum TestxError {
Show 15 variants
NoFrameworkDetected {
path: PathBuf,
},
RunnerNotFound {
runner: String,
},
ExecutionFailed {
command: String,
source: Error,
},
Timeout {
seconds: u64,
},
ParseError {
message: String,
},
ConfigError {
message: String,
},
AdapterNotFound {
name: String,
},
IoError {
context: String,
source: Error,
},
PathError {
message: String,
},
WatchError {
message: String,
},
PluginError {
message: String,
},
FilterError {
pattern: String,
message: String,
},
HistoryError {
message: String,
},
CoverageError {
message: String,
},
MultipleErrors {
errors: Vec<TestxError>,
},
}Expand description
All error types that testx can produce.
Variants§
NoFrameworkDetected
No test framework could be detected in the project directory.
RunnerNotFound
A required test runner binary is not on PATH.
ExecutionFailed
Failed to spawn or execute the test command.
Timeout
Test process exceeded the configured timeout.
ParseError
Could not parse test runner output into structured results.
ConfigError
Configuration file is invalid or contains bad values.
AdapterNotFound
The user specified an adapter that doesn’t exist.
IoError
File system operation failed.
PathError
Path resolution failed.
WatchError
Watch mode error (file watcher failure).
PluginError
Plugin loading or execution error.
FilterError
Filter pattern is invalid.
HistoryError
History/database error.
CoverageError
Coverage tool error.
MultipleErrors
Multiple errors collected from parallel execution.
Fields
§
errors: Vec<TestxError>Trait Implementations§
Source§impl Debug for TestxError
impl Debug for TestxError
Source§impl Display for TestxError
impl Display for TestxError
Source§impl Error for TestxError
impl Error for TestxError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for TestxError
impl !RefUnwindSafe for TestxError
impl Send for TestxError
impl Sync for TestxError
impl Unpin for TestxError
impl UnsafeUnpin for TestxError
impl !UnwindSafe for TestxError
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