1. Parse module meta-data up front 2. Load tests 3. While parsing tests, track which directives are in use. 4. Load modules based on directives used in tests