How do I pass inspection in Texas with a check engine light (clearing codes)?

People make these numbers up. Some say 50 miles, others say 75 miles.

I can usually get all monitors except the evaporative emission monitor to pass in 5 miles. Evaporative emission monitor is only tested during a cold start but usually you are allowed one incomplete monitor.

If your catalytic converter is failing, the catalyst monitor may not pass.