The following circuit measures leakage current:

The 1N4148 is the 'test' item.
The brightness of the LED will change from one 'test' item to another and is very low power. A mechanical switch would go between the 9V battery and the power rail.
Here is a plot of the current in D3:

The current will be different for different devices being tested. The diode current must also be looked at so as to not exceeds it's max current specification.

The 1N4148 is the 'test' item.
The brightness of the LED will change from one 'test' item to another and is very low power. A mechanical switch would go between the 9V battery and the power rail.
Here is a plot of the current in D3:

The current will be different for different devices being tested. The diode current must also be looked at so as to not exceeds it's max current specification.