Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/informatiqal/test-o-matiq-cli
CLI wrapper for test-o-matiq. Data tests for Qlik Sense apps
https://github.com/informatiqal/test-o-matiq-cli
cli qlik qlik-sense qliksense testing
Last synced: about 2 months ago
JSON representation
CLI wrapper for test-o-matiq. Data tests for Qlik Sense apps
- Host: GitHub
- URL: https://github.com/informatiqal/test-o-matiq-cli
- Owner: Informatiqal
- License: mit
- Created: 2022-09-05T19:30:33.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T15:06:16.000Z (2 months ago)
- Last Synced: 2024-10-24T21:14:09.800Z (2 months ago)
- Topics: cli, qlik, qlik-sense, qliksense, testing
- Language: TypeScript
- Homepage:
- Size: 491 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Test-O-Matiq CLI
> **Warning**
> Under development!---
> **Note**
> Please check out the [Wiki section](https://github.com/Informatiqal/test-o-matiq-cli/wiki) for details and examplesCommand line wrapper for [test-o-matiq](https://github.com/Informatiqal/test-o-matiq)
## Introduction
This command line package wraps `test-o-matiq` package and allows running data tests against Qlik app. The tests are specified in yaml files.
## Installation
```shell
npm install -g test-o-matiq-cli
```## Usage
Example yaml file:
```yaml
# yaml-language-server: $schema=https://github.com/Informatiqal/test-o-matiq/blob/main/src/schema/root.json?raw=true# ^^^ used to load json schema for better intellisense
# if using VSCode please use "YAML" extensiondescription: Set of test to execute against Qlik app
author: Someone Whatever
version: 0.0.1
selections:
- field: Year
values: [2020, 2021, 2022]
spec:
Meta:
DataModel:
# check for fields presence
Field: [Year, OrderDate, SalesAmount, OrderId]
# check for table presence
Table:
- MasterCalendar
- OrderTransactions
# synthetic keys are allowed?
SyntheticKeys: false
Field: # number of values in fields
- name: Year
count: 3
- name: OrderId
count: 10
Table: # number of rows in tables
- name: OrderTransactions
count: 10
- name: MasterCalendar
count: 36
# check for variables presence
Variable:
Exists: [vLastYear]
#DoNotExists: [vTest1]
Scalar: # single expression validation. Strict comparison by default
- name: Test expression 1
expression: sum(Test)
result: 0
- name: Test expression 2
expression: sum(1000)
result: 1000
```Result
![result1](./assets/result1.png)
![result2](./assets/result2.png)