Giter VIP home page Giter VIP logo

test-o-matiq-cli's Introduction

Test-O-Matiq CLI

Warning Under development!


Note Please check out the Wiki section for details and examples

Command line wrapper for 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

npm install -g test-o-matiq-cli

Usage

Example yaml file:

# 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" extension

description: 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

result2

test-o-matiq-cli's People

Contributors

countnazgul avatar renovate[bot] avatar

Watchers

 avatar

test-o-matiq-cli's Issues

More variables options

At the moment variables values can be provided only by variables file. More options should be added - inline, environment, global

Global config file?

In connection with #32 ... is it a good idea to have .test-o-matiq file (inside the users folder) where default values can be overwritten?

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency @types/ws to v8.5.12
  • Update dependency @rollup/plugin-commonjs to v26
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • @informatiqal/variables-loader ^0.0.6
  • js-yaml ^4.1.0
  • minimist ^1.2.8
  • spinnies ^0.5.1
  • test-o-matiq ^0.9.1
  • ws ^8.16.0
  • @rollup/plugin-commonjs ^25.0.7
  • @rollup/plugin-json 6.1.0
  • @rollup/plugin-node-resolve ^15.2.3
  • @rollup/plugin-replace ^5.0.5
  • @rollup/plugin-typescript ^11.1.5
  • @types/js-yaml 4.0.9
  • @types/minimist ^1.2.5
  • @types/node 20.10.6
  • @types/spinnies ^0.5.3
  • @types/ws 8.5.10
  • dotenv 16.3.1
  • rollup 4.9.2
  • rollup-plugin-delete 2.0.0
  • rollup-plugin-typescript2 ^0.36.0
  • ts-node ^10.9.2
  • tslib ^2.6.2
  • typedoc ^0.25.6
  • typescript ^5.0.4
  • node >=12.20

  • Check this box to trigger a request for Renovate to run again on this repository

Generate output

At the moment the output is only displayed on screen after the test suite is complete. It should be able to save the output into a file.

If there is time might be interesting to try and generate the file in html format.

Engine traffic option

Provide option to output the raw engine traffic. This way if there is an issue it can be easily debugged

Multiple test suite files

Ability to either:

  • specify list of exact file names to be processed
  • specify folder and glob pattern to get the list of files

Global argument

If --global (for example) argument is provided then an extra variable file will be read. This extra variable file will have to be located into the current user home folder ($HOME\test-o-matiq\global_variables.yaml).

The --global argument CAN be used with --variable argument. If both arguments are provided:

  • the variables there will be concatenated
  • if there is an overlap --variable variables will have higher priority than --global

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.