pub enum TestLevel {
NoTestRun,
RunSpecifiedTests,
RunRelevantTests,
RunLocalTests,
RunAllTestsInOrg,
}Expand description
How much of the org’s Apex test suite to run during a deployment.
Variants§
NoTestRun
No tests. Sandbox/dev only.
RunSpecifiedTests
Only the classes listed in DeployOptions::run_tests.
RunRelevantTests
(Beta) Salesforce-selected relevant tests.
RunLocalTests
All non-managed-package tests in the org. Default for prod deploys that contain Apex.
RunAllTestsInOrg
Every test in the org including managed-package ones.
Trait Implementations§
impl Copy for TestLevel
impl Eq for TestLevel
impl StructuralPartialEq for TestLevel
Auto Trait Implementations§
impl Freeze for TestLevel
impl RefUnwindSafe for TestLevel
impl Send for TestLevel
impl Sync for TestLevel
impl Unpin for TestLevel
impl UnsafeUnpin for TestLevel
impl UnwindSafe for TestLevel
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