From Nifty GUI - Best Practices
<h2>Validate the XML before loading</h2>The Nifty class has validateXml() method that takes the same input XML argument as fromXml(). Nifty does not validate the Xml by default, and will blow up in surprising ways if your XML does not conform to the schema. Adding the validation step will save you debugging time. You can validate right before loading, or in your unit tests.
(Emphasis mine).
Well, I would like to validate on my test. Problem is that I need to create a Nifty object to validate the XML, and I need to start a SimpleApplication to create the Nifty object, so the test is interactive and not automatic.
My conclusion: Iām doing all wrong. Which is the good way to validate XML on my tests?