tcunit / TcUnit-Runner

Program that makes it possible to automate runs of TcUnit unit tests
Other
34 stars 17 forks source link

Adding solution file path as a parameter for the TcUnit-Runner #47

Closed ElliHerrmann closed 1 year ago

ElliHerrmann commented 1 year ago

Description - New feature

Expected behaviour

Jenkins Pipeline works with the right solution (Test- solution)

Informations

The TwinCat project has 2 solutions in 1 project. We use the TCUnit-Runner to check our code with a Jenkins Pipeline.

When we call the TcUnit-Runner we want to check the functionality of our code with our test solution. Right now TcUnit-Runner is trying to work with the productive code solution but we want to work with our test solution.

Is there already a way to order the Jenkins job to check a self chosen Solution (define the path to the solution in Jenkins) or is it only possible to find the correct solution by enhancing TCUnitRunner?

Software- Version

TCUnitRunner Version 0.9.3.0

iadonkey commented 1 year ago

If you are using Jenkins, use a declarative pipeline and the 2 solutions are in separate folders, you could use dir(“folder_of_solution2”) { // execute tcunitrunner }

if you are running a different kind of pipeline there should be some similar mechanism to switch folders. The only prerequisite is to have the solutions in separate locations.

ElliHerrmann commented 1 year ago

Hey iadonkey,

thank you for answering. I will try your suggestion.

sagatowski commented 1 year ago

@ElliHerrmann Did @iadonkey suggestion work?