🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/maksimall89/xk6-notification

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/maksimall89/xk6-notification

v0.0.0-20221016095111-0a78b6c2b038
Source
Go
Version published
Created
Source
shoutrrr gopher with a k6 cap

xk6-notification

This is a k6 extension using the xk6 system.


:exclamation: This is a proof of concept

As such, it isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK!

Build

To build a k6 binary with this extension, first ensure you have the prerequisites:

  • Go toolchain
  • Git

Then:

  • Install xk6:
$ go install go.k6.io/xk6/cmd/xk6@latest
  • Build the binary:
$ xk6 build --with github.com/dgzlopes/xk6-notification@latest

Usage

import http from 'k6/http';
import notification from 'k6/x/notification';

const url = 'slack://token:token@channel/';

export function setup() {
  notification.send(url, 'Starting test');
}

export default function () {
  http.get('http://test.k6.io');
}

export function teardown(data) {
  notification.send(url, 'Finishing test');
}

Token example (more information): slack://xoxb:123456789012-1234567890123-4mt0t4l1YL3g1T5L4cK70k3N@C001CH4NN3L

Documentation

For a full documentation of the api and how to use it, see the official shoutrrr documentation.

FAQs

Package last updated on 16 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts