Module test cases are special types of runs that are executed not on Stacks but on Spacelift-managed Terraform modules. Note that this article does not cover modules specifically - for that please refer directly to their documentation. The purpose of this article is to explain how modules test cases are executed and how they're different from other types of runs.
In a nutshell, module test cases are almost identical to autodeployed tracked runs. But unlike stacks, modules are stateless and do not manage any resources directly, so just after the changes are applied and resources are created, they are immediately destroyed during the destroying phase. Here is what a fully successful module test case looks like:
Note that the destroying phase will run regardless of whether the applying phase succeeds or fails. This is because the failure could have been partial, and some resources may still have been created.