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

https://github.com/staktrace/supercollapser


https://github.com/staktrace/supercollapser

Last synced: over 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# SuperCollapser

This is a tool to collapse redundant clauses and rules in the WPT meta-files
in mozilla-central.

## Usage

```
git clone https://github.com/staktrace/supercollapser
cd supercollapser
./supercollapse /path/to/mozilla-central
```

This will make changes to the `testing/web-platform/meta` folder in your
mozilla-central folder. Diff to verify and commit.

## Caveats

The collapsing is done using a set of rules hard-coded in `src/main.rs`. It
needs to be updated if we add new test configurations and such. So always
do a try push with all configurations before landing the generated changes.

## More documentation

There is a big comment above the ruleset in `src/main.rs` that explains how
the rulesets work and walks through a concrete example.