• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • CDP Studio - Code Mode Manual
  • Unit Testing

GitHub Copilot CDP Studio - Code Mode Manual

Unit Testing

Unit Testing

Unit testing is the lowest level of testing performed during software development. Proper unit testing will detect many problems at a stage of the development where they can be corrected economically. Unit tests are essential for code maintanance to detect regressions.

Adding Unit Tests

Right click on a library and Select Add new... option from the context menu .

Select Test and then Unit Test.

Fill in the form where:

A test fixture name used to provide a common environment for a set of test cases.

The very first test case name.

Whether to create setup/tear-down methods that wrap every test case.

After completing the wizard you are ready to write the very first test case and add more test cases manually. To add a new test fixure, run the wizard again.

Note: For more info about the verification methods etc see CppUnit Cookbook

Running Unit Tests

Unit tests are run when building the library.

Build the library by clicking Build from library context menu.

Test results are reported under Issues pane .

Note that you can enable/disable building with tests from Deploy Configuration tab in Configure mode .

GitHub Copilot CDP Studio - Code Mode Manual

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top