Skip to content

Commit

Permalink
k6: options.cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
olegbespalov committed Mar 15, 2024
1 parent 38e4da1 commit a5e5aed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
10 changes: 10 additions & 0 deletions types/k6/options.d.ts
Expand Up @@ -47,6 +47,9 @@ export interface Options {
/** Third party collector configuration. */
ext?: { [name: string]: CollectorOptions };

/** Cloud options */
options?: CloudOptions;

/** Static hostname mapping. */
hosts?: { [name: string]: string };

Expand Down Expand Up @@ -139,6 +142,13 @@ export interface CollectorOptions {
[name: string]: any;
}

/**
* Options for the cloud.
*/
export interface CloudOptions {
[name: string]: any;
}

/**
* Test stage.
*/
Expand Down
6 changes: 6 additions & 0 deletions types/k6/test/options.ts
Expand Up @@ -126,3 +126,9 @@ const browserScenariosBad: Scenario[] = [
},
},
];

const optionsWithCloud: Options = {
cloud: {
name: "My cloud test",
},
};

0 comments on commit a5e5aed

Please sign in to comment.