What is a floor test?

A floor test is a motion through which the government seeks to know whether it still enjoys the confidence of the legislature.

In this procedure, a CM appointed by the Governor can be asked to prove majority on the floor of the Legislative Assembly of the state.

The Chief Minister has to move a vote of confidence and win a majority among those present and voting. 

The Chief Minister has to resign if the confidence motion fails to pass.

This happens both in the parliament and the state legislative assemblies.

In situations when there are differences within a coalition government, the Governor can ask the CM to prove majority in the house.