tiloio / TddKit

Small, fast and good UX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TDDKit

  • test adapters for each test case
    • e.g. node for frontend tests, testcafe & java for backend tests
    • adapters specify how to run the tests
  • manage teset Resources & Dependencies
    • on multiple levels
      • adapters
        • can wait for resources and dependencies
        • can take into consideration the dependencies result in the logs
      • tests
        • adapters can support this
        • can wait for resources and dependencies
        • can take into consideration the dependencies result in the logs

Configuration

tests:
    - name: "frontend"
      type: "node"
      testMatch: [ "**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)" ] 
      resources: ["database", "s3"] # optional - can also be specified in the tests if adapter supports it  
      dependencies: [] # optional - dependencies to other tests
    - name: "e2e"
      type: "testcafe"
      testMatch: [ "**/e2e/**/?(*.)+(spec|test).[jt]s?(x)" ]   
      resources: ["database", "s3"] # optional - can also be specified in the tests if adapter supports it  
      dependencies: ["frontend"] # optional - dependencies to other tests
resources: # use executors format to pass it to executor
    - name: database
      cmd: docker run mysql...
    - name: s3
      cmd: docker run minio...

Performance

Measrure performance with https://github.com/sharkdp/hyperfine.

About

Small, fast and good UX


Languages

Language:Go 51.5%Language:TypeScript 22.5%Language:JavaScript 19.5%Language:Shell 6.5%