What are the different types of COVID-19 test and how do they work?

What are the different types of COVID-19 test and how do they work?