This sample project demonstrates how you can create a few simple tests in CAT. The example checks for any problem in data in two simple CSV files. The concept is generic, you can run similar tests against your databases. When exploring and running the example, try to imagine your data and your tests.
First, explore the content of {{ProjectName}}.cat.yaml file. It is the main configuration file, it instructs CAT where to find data and what to test.
This example works with CSV files. This allows you to run it and explore what is CAT about, without a need to connect to your data. For CSV and MS Excel files, CAT loads the data into an in-memory database. But that is NOT the case for any other data sources - CAT tests the data "where they are", without moving them anywhere.
Simply open the {{ProjectName}}.cat.yaml file and click Run.
Import-Module CAT
Invoke-CatProject -Path "{{ProjectName}}.cat.yaml"
catcli run -p "{{ProjectName}}.cat.yaml"
ReadMe.md
This file (explanation of the sample project)
{{ProjectName}}.cat.yaml
The CAT project file. This is the main configuration file for CAT, where you define data sources and tests.
XXX521260_Flight.csv
Sample data you are testing in this example
XXX521260_Passengers.csv
Sample data you are testing in this example
Run.ps1
Example PowerShell script that runs this example (evaluates the tests and displays results).