https://github.com/staktrace/supercollapser
https://github.com/staktrace/supercollapser
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/staktrace/supercollapser
- Owner: staktrace
- Created: 2019-02-05T15:59:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T15:24:55.000Z (over 7 years ago)
- Last Synced: 2025-01-25T03:44:19.774Z (over 1 year ago)
- Language: Rust
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.