How to do unit test on a plugin module?

Hey people, I was wondering how may I debug/test a single module, without having to start the editor or the engine it self?

I would like to create a editor plugin but I’ll need lot of testing and I can’t see a way to run only my code there!

Is there a way to have a sort of main.cpp inside my module only for testing purposes?

Thanks!