Skip to content

beuss-git/wpt-results-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WPT Results Analyzer

WPT Results Analyzer is a Python tool for analyzing and comparing Web Platform Tests (WPT) result files. It provides detailed insights into test and subtest outcomes, making it easier to track changes and improvements in web platform compatibility testing locally.

Comparison Subtests

Features

  • Analyze single WPT result files
  • Compare two WPT result files to identify changes, improvements, and regressions
  • Detailed analysis of tests and subtests
  • Customizable output with different detail levels
  • Color-coded output for easy interpretation

Installation

No additional dependencies are required as it only uses standard library modules.

Clone the repository:

git clone https://github.com/beuss-git/wpt-results-analyzer.git
cd wpt-results-analyzer

Usage

Produce a WPT result file

Standalone WPT:

./wpt run --log-wptreport=wpt_results.json html/

Or for Ladybird:

./Meta/WPT.sh run --log-wptreport wpt_results.json html/

NOTE: You need to use --log-wptreport to get the correct output format.

Comparing two files

python wpt_analyze.py path/to/old_results.json path/to/new_results.json

Comparison Subtests

Additional options

  • --detail-level {summary,new,removed,changes,all}: Set the level of detail in the output (default: summary)
  • --max-details {N,all}: Set the maximum number of detailed items to display (default: 3). Use 'all' to show all details
  • --show-subtests: Include subtest information in the analysis
  • --failures-only: Only show details for failed tests

Example with options:

# Show all details including subtests
python wpt_analyze.py wpt_results_a.json wpt_results_b.json --detail-level all --max-details all --show-subtests

# Show only failed tests with up to 10 details per category
python wpt_analyze.py wpt_results_a.json wpt_results_b.json --detail-level changes --max-details 10 --failures-only

Comparison Subtests

Testing

python -m unittest discover tests

Alternatively you can use pytest: pip install pytest (preferably in a virtual environment).

pytest

License

This project is licensed under the BSD 2-Clause - see the LICENSE file for details.

About

Tool for analyzing and comparing Web Platform Test (WPT) result files locally.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages