Test runner: Utility to run generated tests
Runs SQL script(s) that tests that the content of the database has not changed.
The scripts are presumed to be generated by Utility to generate test queries.
Python module, but can be also written manually or generated by other tools as long as the query produces
a string column named “passed” that contains values passed
or failed
.
Used by The gen_dbt_cwl Module.
Usage
python -m dorieh.platform.dbt.dbt_runner [-h] --script SCRIPT [SCRIPT ...]
[--autocommit] [--db DB] [--connection CONNECTION]
[--verbose] [--table TABLE]
Options:
Option |
Alias |
Description |
---|---|---|
|
|
Show this help message and exit |
|
|
Path to the file(s) containing test scripts to execute |
|
Use autocommit, default: False |
|
|
|
Path to a database connection parameters file, default: database.ini (in the working directory) |
|
|
Section in the database connection parameters file |
|
|
Name of the table to test, default: None |
|
Verbose output, default: False |
Details
A utility that executes test cases generated by dorieh.platform.dbt.create_test.py tool.