{"repo":"NiGhTTraX/mugshot","free":true,"listed":false,"github":"https://github.com/NiGhTTraX/mugshot","clone":"git clone https://github.com/NiGhTTraX/mugshot.git","description":"Framework independent visual testing library","language":"TypeScript","stars":138,"topics":["tdd","testing","webdriver","screenshot","regression","puppeteer","playwright","webdriverio"],"license":"MIT","category":"scrapers-browser-automation","readme_excerpt":"Framework independent visual testing library View Docs ---- Introduction Mugshot is a node library for doing visual regression testing. The way screenshots are taken, processed, compared and stored is entirely customizable. You can use it to write visual regression tests for websites, mobile apps, native apps etc. Moreover, Mugshot doesn't impose any preferences on how you write or execute the tests, it just gives you an assertion that you can call however and whenever you want. Features - Framework independent so you can choose your favorite tools or plug it into your existing testing suite. - Produces diff images if a test fails. - Throws on missing baselines (can be toggled through options). - Everything is pluggable (screenshotter, differ, storage etc.). Installation Or with yarn Depending on how you want to take screenshots, you'll need a Screenshotter implementation. Mugshot bundles a WebdriverScreenshotter that you can use with Webdriver compatible clients e.g. Selenium or Appium. Each client might need an adapter that translates its API to the interface that Mugshot expects. The following adapters are available: Package Version ---------------------------------------------- --------------------------------------------------------------- @mugshot/webdriverio @mugshot/puppeteer @mugshot/playwright Motivation Manually checking one component for unexpected visual changes is hard. Doing it across your entire UI is harder. Doing it in multiple browsers/devices is even harde","default_branch":null,"files":null,"tree":[],"storefront":"/r/NiGhTTraX","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/NiGhTTraX/mugshot/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."}