CSV exporter

The CSV exporter generates a flat CSV file with one row per test case and detailed Excel files for failed tests.

Output structure

{output_path}/csv/
├── test_results.csv              → Summary of all test cases
└── test_results/
    ├── Test case 1.xlsx          → Gap details (only for failed tests)
    └── Test case 2.xlsx

CSV columns

ColumnDescription
executionidUnique identifier for the test run
nameTest case name
stateResult: passed, failed, error, notExecuted
sourcestartSource data loading start time
sourceendSource data loading end time
sourcedurationSource loading duration in seconds
sourcecountNumber of rows in source dataset
sourceexecutedactionQuery or path executed for source
expectedstartExpected data loading start time
expectedendExpected data loading end time
expecteddurationExpected loading duration in seconds
expectedcountNumber of rows in expected dataset
expectedexecutedactionQuery or path executed for expected
comparestartComparison start time
compareendComparison end time
comparedurationComparison duration in seconds
successratePercentage of matching rows (0.0 to 1.0)
errortypeError category: headers, count, data, compare
errormessageError description
errordetailfilepathPath to the XLSX gap analysis file

Usage

Command line

ploosh --connections connections.yml --cases test_cases --export CSV

Python API

from ploosh import execute_cases

executecases(cases="testcases", connections="connections.yml", path_output="./output")

Then manually set export format — CSV export is available via CLI --export flag

Gap analysis Excel files

For each failed test case, an XLSX file is generated showing the differences between source and expected datasets with side-by-side comparison of values.