Exporting Only Unit Tests From Existing Projects
  • 12 Apr 2023
  • 1 Minute to read
  • Dark
    Light

Exporting Only Unit Tests From Existing Projects

  • Dark
    Light

Article Summary

Example Lab Article
While Example Lab projects are resources for public use, articles and assets are not actively maintained. Screenshots and features are from the specified version below. These references may become dated as new versions are released.


Overview

Example Lab Details

Version6.13.0
Root FolderExample Lab - Export  Unit Test for Selected Project
Modules None
DependenciesNone

This Example Lab Project demonstrates how to export only the unit test from a specified project in the user's Decisions instance.


Explanation

For this example, it is assumed the unit tests are already added to the project. The First Form will ask for the Project name. This will need to be the exact project name(ie, caps and spacing). The Fetch Entities step fetches all objects associated with that Project. The "Rule Collection" step filters the Fetch entities results to only output unit tests. The second form shows all the units test that were found for the project. The Export entities step exports all the unit tests into a zip file. The third form allows us to download that zip file.

Reference Articles
About the Fetch Entities Step
About the Rule Collection Filter Step



Project Download

The examples attached were developed to be instructional and were not developed as officially supported components. For more information or to engage our service team to develop fully supported, production quality solutions, please contact services@decisions.com. Import the project below to a Decisions environment on version 6.13.0 or later using our Importing/Exporting article.





Was this article helpful?