---
title: "List Module Test Runs"
method: GET
path: "/module/{moduleId}/tests"
tags: ["Modules"]
---

# List Module Test Runs

`GET /module/{moduleId}/tests`

## Path parameters

- `moduleId` string, required

## Query parameters

- `limit` string
- `offset` string

## Response `200`

- ModuleTestingApiFullModuleTestRun[]
  - `status` 'IN_PROGRESS' | 'WAITING_FOR_USER' | 'TIMEOUT' | 'FAILURE' | 'SUCCESS' | 'CANCELLED' | 'INTERNAL_FAILURE' | 'ABORTING' | 'ABORTED' | 'QUEUED' | 'SKIPPED' | 'NEVER_DEPLOYED' | 'IN_PROGRESS' | 'WAITING_FOR_USER' | 'TIMEOUT' | 'FAILURE' | 'SUCCESS' | 'CANCELLED' | 'INTERNAL_FAILURE' | 'ABORTING' | 'ABORTED' | 'QUEUED' | 'SKIPPED' | 'NEVER_DEPLOYED' | 'IN_PROGRESS' | 'WAITING_FOR_USER' | 'TIMEOUT' | 'FAILURE' | 'SUCCESS' | 'CANCELLED' | 'INTERNAL_FAILURE' | 'ABORTING' | 'ABORTED' | 'QUEUED' | 'SKIPPED' | 'NEVER_DEPLOYED'
  - `blueprintRevision` string
  - `prNumber` string
  - `startedBy` string
  - `startedByUser` User
    - `email` string
    - `user_id` string
    - `created_at` string
    - `updated_at` string
    - `app_metadata` AppMetadata
      - `organizations` UserOrganization[]
        - `id` string, required
        - `role` string
        - `name` string
      - `isApiKey` boolean
      - `isAutogeneratedTerraformDeployer` boolean
      - `apiKeyType` 'oidc'
      - `createdBy` string
      - `organizationId` string
      - `isSystemUser` boolean
      - `readOnly` boolean
    - `picture` string
    - `name` string
    - `last_login` string
    - `given_name` string
    - `family_name` string
    - `blocked` boolean
  - `createdAt` string, date-time
  - `queuedAt` string, date-time
  - `startedAt` string, date-time
  - `finishedAt` string, date-time
  - `error` object
  - `customEnv0EnvironmentVariables` CustomEnv0EnvironmentVariables
    - `environmentId` string — The deployed Environment ID
    - `projectId` string — ENV0_PROJECT_ID
    - `projectName` string — The Project Name of the deployed Environment
    - `parentProjectIds` string
    - `parentProjectPath` string
    - `deploymentLogId` string — The deployment ID
    - `deploymentType` 'deploy' | 'destroy' | 'prPlan' | 'deploy' | 'destroy' | 'prPlan' | 'deploy' | 'destroy' | 'prPlan' — The deployment type.
    - `deploymentRevision` string — Available only when deployment revision defined
    - `workspaceName` string — The Terraform Workspace name used in the Environment
    - `rootDir` string — The root repository path
    - `organizationId` string
    - `templateId` string
    - `templateDir` string
    - `templateName` string
    - `environmentName` string
    - `environmentCreatorName` string
    - `environmentCreatorUserId` string
    - `environmentCreatorEmail` string
    - `deployerName` string
    - `deployerUserId` string
    - `deployerEmail` string
    - `reviewerName` string
    - `reviewerEmail` string
    - `reviewerUserId` string
    - `vcsProvider` 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps'
    - `prAuthor` string — pr author. available only in PR Plan
    - `prNumber` string — the pr number. available only in PR Plan
    - `prSourceRepository` string — the source repository. available only in PR Plan for the [VCSs supporting fork PR Plans](https://arc.net/l/quote/uoqvkxmq))"
    - `prSourceBranch` string — the source branch. available only in PR Plan
    - `prTargetBranch` string — the target branch. available only in PR Plan
    - `commitHash` string — the commit hash
    - `commitUrl` string — the commit url
    - `oidcToken` string — The OIDC Token - read more here(https://docs.envzero.com/docs/oidc-integrations) on how to enable it and use it
    - `vcsAccessToken` string — When using a native VCS integration, this will represent the access token we use to clone the repository
    - `tfPlanJson` string — The file path to a JSON representation of a Terraform Plan file
    - `cliArgsPlan` string — add additional cli arguments when running a plan
    - `cliArgsApply` string — add additional cli arguments when running the `apply` command
    - `discoveryRepositoryUrl` string — Repository URL to write PR comments to. Used for prPlan deployments to override the target repo for comments.
    - `discoveryPrNumber` string — PR number to write comments to. Used for prPlan deployments to override the target PR.
    - `discoveryVCS` 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps' | 'gitlab' | 'github' | 'bitbucket' | 'bitbucketServer' | 'gitlabEnterprise' | 'githubEnterprise' | 'azureDevOps'
  - `gitAvatarUrl` string
  - `gitUser` string
  - `blueprintRepository` string
  - `id` string
  - `deploymentLogId` string, required
  - `environmentId` string, required
  - `organizationId` string, required
  - `triggerName` union
    - 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow'
    - 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation'
    - 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow'
    - 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation'
    - 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow' | 'user' | 'terraform-cli' | 'workflow'
    - 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation' | 'cd' | 'prPlan' | 'driftDetection' | 'ttl' | 'scheduled' | 'comment' | 'import' | 'driftRemediation'
  - `testSummary` ModuleTestingApiTestFileSummary
    - `passed` number
    - `failed` number
    - `skipped` number
    - `errored` number
  - `testFilesResults` ModuleTestingApiTestFilesResults
  - `moduleId` string

---

[API](https://skmtc.dev/envzero/apis/env0-api.md) · [All operations](https://skmtc.dev/envzero/apis/env0-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/envzero/env0-api/revisions/513441cbe9dc/schema)
