Patients will be tested without leaving their cars in a bid to curb the spread of the virus in Wales.