addK6

Method
📦 CommunityToolkit.Aspire.Hosting.k6 v13.6.1
interface IDistributedApplicationBuilder {
// ... omitted for brevity
addK6(
name: string,
enableBrowserExtensions?: boolean,
port?: number): K6Resource;
}

Signature

methodaddK6builder
Adds a Grafana k6 container resource to the application model. The default image is and the tag is .
addK6(
name: string,
enableBrowserExtensions?: boolean,
port?: number): K6Resource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
enableBrowserExtensionsbooleanoptional= FalseEnables browser automation and end-to-end web testing to k6.
portnumberoptionalThe host port to bind the underlying container to.
K6Resource

Applies to

This method applies to the following types: