Skip to content

Defining PRG_TEST task to run my unit tests #173

Answered by sagatowski
lpillsbury asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Leah!

The PRG_TEST is just a program just like any other where you instantiate all your test suites. It doesn't have to be named PRG_TEST, you can name it whatever you want (it was just a suggestion). For the tests to execute however, the PRG_TEST (or whatever program you have your tests declared in) need to be linked to a task.

There are two ways to go about this:

  1. Split the project into a library project + executable project. You can either create a separate library project that only includes all your function blocks and all your tests, and then create a library out of this that is used in the main executable project. The library will then only have one program for the unit tests (P…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@lpillsbury
Comment options

@sagatowski
Comment options

@lpillsbury
Comment options

Answer selected by lpillsbury
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants