Loading tutorials
@IsTest annotation. It also assumes you know the difference between a sandbox and production, and that you can run sf commands. It explains the part of a deployment where Apex tests run, and why a failing test can undo changes that were otherw6 min read@IsTest annotation. It also assumes you know the difference between a sandbox and production, and that you have run sf commands against an org. Earlier chapters covered why Apex tests gate a deployment and how coverage is measured. Here we loo6 min readRunSpecifiedTests is the test level where you name the Apex test classes a deployment runs. Nothing else runs. This chapter assumes you can write a basic @IsTest class, know the difference between a sandbox and production, and can run sf commands against an authorized org.5 min read@IsTest annotation. It also assumes you know the difference between a sandbox and production, and that you can run sf commands. It covers RunLocalTests, the test level you will meet most often in production releases.5 min read@IsTest annotation, the difference between a sandbox and production, and basic sf CLI usage. It also assumes you have seen the other three test levels. Here you will learn what RunAllTestsInOrg runs, how it differs from RunLocalTests, and why it is rarely th5 min read@IsTest class, know the difference between a sandbox and production, and have run sf project deploy start before. It covers what happens when you leave out the test level. Teams often depend on this default without realizing it.5 min read@IsTest does, and have run sf project deploy start before. It covers how the 75% code coverage rule applies to each of the four test levels. That determines whether a production deployment passes.6 min read@IsTest annotation. It also assumes you can tell sandboxes from production and have run sf commands before. You have already seen what the four test levels run. Here you will learn how to choose one from the Salesforce CLI, what each flag does, an4 min readsf project deploy start before. It covers what the platform does when a test fails during a deployment, how that differs by org type, and how to read the failure.5 min readsf project deploy start command from earlier chapters. It shows how to run the slow part of a production release (the tests) ahead of time. You then ship the result in minutes.5 min readsf project deploy test flags covered in earlier chapters. Here you use them to design a pipeline: which level to run at each stage, and why.5 min readsf project deploy start. It covers how to read a failed deployment, match the message to a cause, and fix it.5 min read