Forge
Turn an application requirement into code, a test case and a change you can review.
Explore Forge in detail Explore the workflow Compare plans →Follow a change from its specification to its test.
Import validation
- ImportedComplete record
- ReportedMissing reference
- SkippedDuplicate row
A useful error tells the person preparing the file where to make the correction. The review checks that the message points back to the same row in the original sheet.
Importer specification · Error handling
Return the original row number and the missing field. Preserve valid records for review.
An engineer adding a document importer needs to know how the application will handle an incomplete file. Put the expected behaviour, a sample input and its test result side by side before reviewing the change.
The developer can inspect the change and run the fixture before accepting it into the project.
Testing a file importer
A reviewed change with a test for the original failure.
-
Describe the expected behaviour
Give the importer a valid example and a row with a missing reference. Specify what a user should see in each case.
-
Build and exercise the change
Work through the validation rule and run the examples against it. Keep the error message with the affected row.
-
Review the result
Compare the output with the requirement before accepting the change into your application.


