As mentioned, if your spark test at the coil is consistently good, the failure can only be in the ignition sensor or in the cap/rotor/wires, or wiring to the sensor. If it's intermittent, then all bets off.
Edit: Also, wouldn't expect an intermittent issue with the sensor itself unless it's the...