Skip to content

Grizzly Reduce

Tyson Smith edited this page Jul 30, 2021 · 6 revisions

Overview

Grizzly Reduce is a tool built on top of Grizzly Replay and Lithium. It is intended to be used to reduce existing test cases. This is done by performing multiple passes using different reduction strategies to remove as much unnecessary data as possible. The time to reduce a test case is dependent on the browser build, the test case size, complexity and reliability.

Reduction Process

Most test cases can be reduced simply by running python3 -m grizzly.reduce <browser-build> <test case>. This will perform an analysis phase followed by each strategy. The analysis will determine the most reliable method of running the test case and also how many attempts per reduction attempt should be performed when dealing with test cases that are not 100% reliable. Strategies are different methods of removing or manipulating data that help remove unnecessary data, these include line based reduction and JS & CSS beautify. The reduction strategy will be applied to all compatible files in the test case.

Clone this wiki locally