Skip to content

Commit

Permalink
Changed 'css' to specify subdirectories.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yan Jiang committed Nov 24, 2022
1 parent 8128af5 commit 05b36b0
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 47 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,25 @@ pip install -r requirements.txt

### Run subsetting script

To get creation date for all tests:
To get creation date for all tests (optional):

```shell
python get_test_creation_date.py
```

This script will clone wpt github repositry and checkout sepecific snapsot of WPT test directories for each testing group. Then reads the creation date of test files.
At the end of script it outputs a json file which contains creation date for all the tests.
This script only requires to be run once as the creation date won't be changed normally. Generated json output file is alreay uploaded here 'test_creation_date.json'.

To get subset of tests:

```shell
python subsetting_wpt.py
```

This script takes input parameters which defined in 'WMAS2019_input.json' and result from 'get_test_creation_date.py' and generates test subsets and
outputs a list of test subset in a json file.
This script takes input parameters which defined in 'WMAS2019_input.json' and result from 'get_test_creation_date.py' and generates test subsets and outputs a list of test subset in a json file. When 'WMAS2019_input.json' changed this script requires to be run again to get an updated result.

### Output files
* test_creation_date.json - Generated by "get_test_creation_date.py". This is a list of all tests with its creation date.
* subset_report.csv - Generated by "subsetting_wpt.py". This is a report shows defined input from 'WMAS2019_input.json' and generated result which are number of common passed tests and number of selected tests for each Api.
* subset_of_tests.json - Generated by "subsetting_wpt.py". This is a list of selected subset of tests.
170 changes: 169 additions & 1 deletion WMAS2019_input.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,175 @@
"block_list":[],
"must_include_list":[]
},
"css":{
"css/compositing":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-animations":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-backgrounds":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-cascade":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-color":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-conditional":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-flexbox":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-fonts":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-grid":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-images":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-multicol":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-namespaces":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-style-attr":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-syntax":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-transforms":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-transitions":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-ui":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-values":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-variables":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/css-writing-modes":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/CSS2":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/cssom-view":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/filter-effects":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/mediaqueries":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
"block_list":[],
"must_include_list":[]
},
"css/selectors":{
"cut_off_age":2,
"percentage_of_recent":50,
"percentage_of_established":55,
Expand Down
Loading

0 comments on commit 05b36b0

Please sign in to comment.