Get started with CAT

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.

Where to begin

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.

Important

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.

How to run the tests?

In CAT studio

Simply open the {{ProjectName}}.cat.yaml file and click Run.

In CAT PowerShell module

Import-Module CAT
Invoke-CatProject -Path "{{ProjectName}}.cat.yaml"

In CAT CLI

catcli run -p "{{ProjectName}}.cat.yaml"

Structure of this folder: