{"repo":"grafana/k6-jslib-testing","free":true,"listed":false,"github":"https://github.com/grafana/k6-jslib-testing","clone":"git clone https://github.com/grafana/k6-jslib-testing.git","description":"Playwright-compatible functional testing library for k6","language":"TypeScript","stars":16,"topics":["deno","functional-testing","jslib","k6","playwright","typescript"],"license":"Apache-2.0","category":"scrapers-browser-automation","readme_excerpt":"k6-testing A seamless way to write functional tests in k6 with Playwright-compatible assertions. ⚠️ Note : This project is under active development. While it is functional, it is not yet ready for production use, expect bugs, and potential breaking changes. Why k6-testing? - ✨ Write once, run anywhere : Copy-paste your Playwright test assertions directly into k6 - they'll work out of the box - 🎯 Fail fast : Tests interrupt immediately when assertions fail, giving you quick, clear feedback - 🎭 Familiar API : Familiar API for anyone coming from Playwright, Deno, or Vite ecosystem - 🔍 Clear error messages : Get detailed, actionable feedback when tests fail Installation k6-testing is available as a k6 jslib. It can be directly imported as a dependency in your k6 script. Quick Start The following example demonstrates how to use k6-testing in a k6 script. The module exposes the expect function, which behaves in a similar way to Playwright's expect function. To make an assertion, call expect(value) and choose a matcher that reflects the expectation. For functional testing, metrics and performance are most likely irrelevant, and we recommend executing k6 functional tests in headless mode: Features 1. Playwright-Compatible Expectations Use the same assertions you know from Playwright: 2. Auto-Retrying Assertions Perfect for UI testing, these assertions will retry until the assertion passes, or the assertion timeout is reached. Note that retrying assertions are async, so you must aw","default_branch":null,"files":null,"tree":[],"storefront":"/r/grafana","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/grafana/k6-jslib-testing/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}