Crystal automated unit tests at compilation

In my understanding, Crystal can perform Unit tests while compiling but I could not find much info on them.

Can Crystal perform Unit tests while compiling ? If yes how can I implement them in a new project and how do I give them arguments ?
Ex : if some tests require internet can I somehow send / give / set an argument to desactivate them if I have no internet ?