GiteaBot-PHPUnit/README.md
James 1d2ca239e7 refactor to use xml and not testdox for generating the report
also add custim GiteaTitle env var for setting the title
2020-02-09 12:24:14 +00:00

20 lines
500 B
Markdown

Post PHPUnit test results to Gitea
Enable in phpunit.xml with
```plain
<phpunit ... printerClass="JHodges\GiteaBotPHPUnit\ResultPrinter">
<php>
<env name="GiteaUrl" value="https://try.gitea.io/api/v1/"/>
<env name="GiteaUser" value="bot"/>
<!--env name="GiteaPass" value="xxx"/--> <!--probably set this on the machine env-->
<env name="GiteaRepoUser" value="bobemoe"/>
<env name="GiteaRepo" value="test"/>
</php>
<logging>
<log type="junit" target="/tmp/logfile.xml"/>
</logging>
```