PaulBarron
PaulBarron

Reputation: 1

Publish results from PLC unit testing with TcUnit in Beckhoff TwinCAT to an Azure pipeline?

I was wondering if anyone could advise of some options to perform unit testing with TcUnit for a Beckhoff TwinCAT PLC project and be able to upload the results into Azure Devops. I see that Azure has some PublishTestResults tasks that can import formats such as "CTest, JUnit (including PHPUnit), NUnit 2, NUnit 3, Visual Studio Test (TRX), and xUnit 2". However, I don't believe TcUnit produces any of these.

Is there any simple way to accomplish this? Or would one have to write some code to be able to produce a file with one of these formats from within TcUnit.

Alternatively, are there other tasks in Azure that I could customize to read a different type of file?

Upvotes: -1

Views: 59

Answers (1)

Jakob
Jakob

Reputation: 1540

You can either enable the writing of a JUnit compatible file (that azure can use) using the parameter xUnitEnablePublish (of TcUnit) or alternatively you can look into using a solution like the TcUnitRunner. Documentation is available here.

Upvotes: 0

Related Questions