test

Command: test

The turbot test command runs tests for the mods. For example, you want to run a test on the aws-chime mod. Navigate to /turbot-v5/turbot-mods/packages/aws-chime, and run:

turbot test

The Turbot Guardrails CLI will execute the complete test suite for aws-chime mod and output the following result:

mod
    ✓ is parseable
    Compile mod
      ✓ Mod was successfully compiled
    Resource
      Types
        Chime [chime]
          Metadata map
            ✓ Valid - Base test
        Account [chimeAccount]
          ✓ Valid - All properties (95ms)
          ✓ Invalid - Wrong Account type (94ms)
          ✓ Invalid - Missing turbot data (78ms)
          Metadata map
            ✓ Valid - Base test
    Definitions
      chimeAka
        ✓ base (77ms)
        ✓ invalid aka (77ms)
      chimeAccount
        ✓ Valid - All properties (85ms)
        ✓ Invalid - Wrong Account type (75ms)
        ✓ Invalid - Missing turbot data (72ms)
      accId
        ✓ 8deafd50-6a37-404f-a96a-49acc1eb590b (71ms)
        ✓ invalid - cannot start at (86ms)
      name
        ✓ Valid - Base case (73ms)
        ✓ Invalid - Can not start with special characters (105ms)
      accountType
        ✓ Team (71ms)
        ✓ invalid - not listed in options (70ms)
        ✓ invalid - null value (76ms)
      accountAka
        ✓ Valid - Base case (72ms)
        ✓ Invalid - Region not needed (62ms)
        ✓ Invalid - Incorrect Account name (69ms)


  22 passing (1s)

Usage

Usage: turbot test [options]

The turbot test command runs tests for the mods.

The --dir argument specifies the directory of the root module to use. If a path is not specified, the current working directory is used.

The supported options are: