mercredi 22 novembre 2017

TestNG won't output any xml containing failed tests

I have a testng.xml running a test of three classes, each of two two methods.

<suite name="idm-apitesting">
    <test name = "local">
        <classes>
            <class name = "apit.no_pojo.LoginAndConnectionTest"/>
            <class name = "apit.no_pojo.NoJsonObjectLoginTest"/>
            <class name = "apit.pojo.LoginTest"/>
        </classes>
    </test>
</suite>

All of them fail (they must, just now). And I see absolutely no test-output.xml folder. I have put the folder name as the output directory of the Run/debug configuration page. I have removed it from there.

enter image description here Still, no files with any test results appear. But I see the test results in the console as they must be without problems. If I run a class or a method, everything is the same.

Where and how can I set the place where the test results will be written?

What is interesting, if on the log tab I will set copying the console output to some file, it will not appear, too.

Aucun commentaire:

Enregistrer un commentaire