Greentea test to validate the code

Is there a way I can use greentea to validate the logic of my main code. Currently it runs the tests inside the TESTS folder. Is there a way where I can use greentea tests to validate my main application code against a test case