OpenAPITools / OpenAPITools/openapi-generator

[zapier] generate tests

Open
#19,826 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

You can run tests with the zapier-platform-cli using zapier test, but there's no tests generated.

In fact, the utils file does most validation when validation of the API should be done with tests instead.

Describe the solution you'd like

Generate basic Zapier tests.

Create some middleware to write tests outside of generated test.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the zapier-platform-cli zapier test command and reading the utils file mentioned in the issue. Define the scope of the generated basic Zapier tests and the middleware for tests outside generated code; the work is done when these tests are generated and the relevant API validation is covered by tests.

Written by the indexing model from the issue text.

Assessment

Domain
cli, testing
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.