Can dotCover reports on Unity's tests be generated via command line?

Answered

I see that JetBrains Rider supports dotcover report generation on Unit tests belonging to a Unity project. I would like to generate this report via a build server.

Is there a way to run unity tests, and generate dotcover report via command line? 

 

Thanks!

 

 



0
1 comment

Hello Garrett,

Yes, it is possible, please refer to the following YT issue: DCVR-10117. There is also an example of the command:

dotcover.EXE cover /TargetExecutable="D:\Program Files\2020.1.17f1\Editor\Unity.exe" /TargetArguments="-runTests -batchmode -testResults D:\1\results.xml -projectPath C:/Work/com.unity.ide.rider" /Output="D:/1/AppCoverageReport.html" /ReportType="HTML"

Let me know if you have other questions.

0

Please sign in to leave a comment.