Does BuildPlayer() return warnings?

Hi,
I’m having this issue while working on unit testing with Jenkins, and I’m doing this by launching Unity in batchmode and executing my Editor script that calls BuildPlayer() and checks the length of the returned string from BuildPlayer() to decide for failure or pass. However, I spotted this issue when I realized the code actually has warnings in Unity, still passed my build test, and simply because the BuildPlayer() didn’t return error string, while I was making a development build. So I’m wandering if there’s any way to check for compile warnings programatically?

Any hint or suggestion is very appreciated!

Maybe your script could check the log file instead of stdout?

Yeah, the log file is exactly where I check to see if my code caught any returned error/warning messages from BuildPlayer()