An open API service indexing awesome lists of open source software.

https://github.com/lynix28/grpc-node-k6-example

GRPC automation test example with NodeJS (as Server) and K6 by Grafana Labs (as Client)
https://github.com/lynix28/grpc-node-k6-example

api-testing automated-testing grpc-testing k6

Last synced: 6 months ago
JSON representation

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

Awesome Lists containing this project

README

          

# grpc-node-k6-example
[![CircleCI](https://circleci.com/gh/lynix28/grpc-node-k6-example/tree/master.svg?style=shield)](https://circleci.com/gh/lynix28/grpc-node-k6-example/tree/master)

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 `
- start the server `docker run --name <"your_container_name"> -p 50051:50051 -d `

3. Install K6 and run it with command
- `k6 run -e IPaddress=localhost ./client/tests/run_test.js`

How the report look like



![image](https://github.com/lynix28/grpc-node-k6-example/assets/102797648/75210e59-f1fc-4c53-872d-6152d77cb7a9)