Loading tutorials
@IsTest annotation. You should also know the difference between a sandbox and production, and be able to run sf commands. Later chapters cover each test level in detail. This one explains why tests sit in the deployment path at all.3 min read@IsTest. It also assumes you know that a deployment can run those tests. Here you learn what the coverage percentage counts, so the later chapters on test levels and coverage rules make sense.2 min read@IsTest annotation. It also assumes you know the difference between a sandbox and production, and that you have run sf commands before. Here you will see where Apex tests run during a deployment and why they can block it.3 min read@IsTest annotation. It also assumes you know how sandboxes differ from production and can run sf commands. It introduces the four deployment test levels so the later chapters on defaults, coverage and pipelines have a shared reference.2 min read@IsTest annotation. It also assumes you know the difference between a sandbox and production, and that you have run sf project deploy start before. The chapter covers the lowest of the four test levels, NoTestRun.3 min read@IsTest class, know the difference between a sandbox and production, and can run sf commands. It covers the second test level, RunSpecifiedTests, which runs only the test classes you name.2 min read@IsTest does, understand the difference between a sandbox and production, and can run sf commands. It covers one test level: RunLocalTests.2 min read@IsTest annotation, the difference between sandboxes and production, and basic sf CLI usage. It covers the fourth and broadest deployment test level, RunAllTestsInOrg.2 min readsf project deploy start. Here you learn what Salesforce chooses when you leave out --test-level.2 min read@IsTest class and run sf project deploy start. It also assumes you know how sandboxes differ from production. The question here is how much of your Apex must be covered by tests, and how that depends on the test level.2 min readsf CLI. It covers the flags that choose which tests run during a deployment.2 min readsf project deploy start. It covers what the platform does when a test fails during a deployment, and how to find the cause.3 min readsf project deploy start, you know the four test levels, and you know the 75% coverage rule. It shows how to run the slow test step ahead of time, so the production release itself is short.2 min readsf project deploy flags covered earlier. It shows how to match a level to each stage of a pipeline.2 min readsf project deploy start sets a level. Here you learn to read a failed deployment and find the cause.2 min read