Polyman Documentation - v2.2.2
    Preparing search index...

    Function generateTestsAction

    • Generates tests based on testset/group/test specification. Supports: all testsets, single testset, single group, or single test.

      Parameters

      • target: string

        Target specification (testset name, group, or test index)

      • Optionalmodifier: string

        Optional modifier (group name or test index)

      Returns Promise<void>

      If Config.json is invalid

      If testset/group/test not found

      If test generation fails

      // From CLI: polyman generate all
      await generateTestsAction('all');
      // Generates all testsets
      // From CLI: polyman generate tests
      await generateTestsAction('testsets');
      // Generates testset named 'testsets'
      // From CLI: polyman generate tests samples
      await generateTestsAction('testsets', 'samples');
      // Generates group 'samples' in testset 'testsets'
      // From CLI: polyman generate tests 5
      await generateTestsAction('testsets', '5');
      // Generates test 5 in testset 'testsets'