Test the application without publishing

How do we test the application in the pre-prod after applying the changes and without publishing into the env, is there a way to test that, because half of our time goes into publishing small changes. It's very frustrating sometimes when we have to wait for minutes to publish the code, to test small changes. You might say that there will be issues while merging the code. But every problem has some solutions.

but we could not test because of errors in code, would you have to test with errors?

I don't think its a good idea as Willian rightly mentioned there are some inbuilt checks which prohibit a solution to be published and that wont help you in a long term.

Usually publishing an application is pretty fast and wont take much of your time. 

Let us know if you have some other points which gives value to your idea.