Car failed smog check do to check engine light not turning on. How can it be fix on 2005 Chevrolet Aveo

Car failed because the check engine light wouldn't turn on at time of test. Took it t mechanic and all fuses are working fine can't seem to find what is causing problem. Anyone else have this problem and had it fixed preferably not at a huge cost

Asked by for the 2005 Chevrolet Aveo
IF the computer will communicate with a scan tool, it is most likely just a burned out bulb or circuit to the bulb.