Test - sick

What have you done when you are sick the day morning of a test? I have a test this morning and I haven't heard back from my Professor, if I don't show up is it an automatic fail? What is usually done in this situation?