Tests
Review available unit tests
Review available unit tests to understand Legend/PURE grammar functionality.
Tutorial coming soon.
Create a unit test
Create a unit test for the feature you are using so that Platform upgrades do not cause your projects to break.
Tutorial coming soon.
Create Test Data
Data Elements are top level elements that define test data for store/external formats. They are useful for sharing test data among different tests.
Relational
Test data for relational is defined through CSV values for each table, which is to be used when a user is sourcing data from relational databases. The name of the schema, the table, and the related CSV values must all be specified. Additionally, the primary keys have to be distinct.
External Format (model-to-model)
Test data for model to model can be defined through external format. Provides test data for properties of source classes that are being used in the mapping.
Service Store
UrlPath
in Service Request Pattern
is the root path defined in the Service Group
of Service Store
, and the path specified in the service for which this data element is created.
Service Response Definition
panel provides test data for all used properties in the chosen format. Details below:
Run all your tests globally across the project
You can run all saved tests across your Studio project at the same time in the new "testables" section. Previously, users needed to navigate to the Service or Mapping editor respectively to run tests. This will be hugely beneficial when testing how changes to your data model may impact data feeds or ad-hoc data queries of your data consumers. More details and video walkthrough here.