/grpc-node-k6-example

GRPC automation test example with NodeJS (as Server) and K6 by Grafana Labs (as Client)

Primary LanguageJavaScript

grpc-node-k6-example

CircleCI

GRPC automation test example with NodeJS (as Server) and K6 by Grafana Labs (as Client)

How to setup and run the test

  1. Clone this repository

  2. Build GRPC Dummy Server with Dockerfile (file provided)

    • execute docker build -t <your_image_tag> <path/to/Dockerfile>
    • start the server docker run --name <"your_container_name"> -p 50051:50051 -d <your_image>
  3. Install K6 and run it with command

    • k6 run -e IPaddress=localhost ./client/tests/run_test.js

How the report look like

image