To pass an emissions test, your vehicle's emission control systems must be properly maintained and functioning within permitted limits. When the check engine light illuminates, it indicates that a malfunction has been detected in these systems, and it must be diagnosed and properly fixed. Simply by resetting the light, even without driving any miles, you haven't addressed the underlying emission-related issue, which will likely keep your vehicle from passing an emissions test until it's resolved.