Skip to content

Commit

Permalink
Generation of tests and review pages script improvements (#451)
Browse files Browse the repository at this point in the history
* updated create-all-tests script to add verbose flag and provide summary of runs

* Generate test and review files automatically

* Generate test and review files automatically

* Generated tests improvements (#3)

* WIP - pre-push test

* Revert "WIP - pre-push test"

This reverts commit 42b40d6

* adding tests folder level .gitignore

* after untrack

* added additional command to generate-and-commit-files workflow script

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* Generate test and review files automatically

* workflow tweak

* Generate test and review files automatically

* workflow tweak

* workflow step rename

* added tests/.gitignore

* Generate test and review files automatically

* untracked files

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* adjusted generate-and-commit-files.yml for CI

* Generate test and review files automatically

* updated workflow action

* untracked files

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* Update test-03-navigate-to-unchecked-checkbox-interaction.html

* Generate test and review files automatically

* Create test-03-navigate-to-unchecked-checkbox-interaction.html

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* after untrack

* modified gitignore

* untrack files

* testing .gitattributes

* Generate test and review files automatically

* .gitattributes

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* adjusted .gitattributes

* Generate test and review files automatically

* misc

* Generate test and review files automatically

* misc

* misc

* adjusted gitignore

* after untrack

* prep to test workflow

* Generate test and review files automatically

* Create index.html

* Generate test and review files automatically

* Delete index.html

* Generate test and review files automatically

* adjusting generated PR link

* Generate test and review files automatically

* adding support for support.json

* Generate test and review files automatically

* build cleanups

* misc

* workflow refactor

* Generate test and review files automatically

* Generate test and review files automatically

* after merging with verbosity branch

* Generate test and review files automatically

* updated .gitattributes and .gitignore; added additional utility script for generating tests and review files locally

* Generate test and review files automatically

* misc

* Generate test and review files automatically

Co-authored-by: howard-e <[email protected]>

* Generate test and review files automatically

* changed update-pr.yml workflow generated link

* typo fix in review-template file

* * removed in-line tests and review pages generation
* added `npm run validate` command
* added `npm run cleanup` command

* Generate test and review files automatically

* added targeted test plan directory support for npm run build (create-all-tests.js) and npm run validate

* start to support of targeted test plan directory for test-reviewer.mjs

* added support for targeted test plan directory for test-reviewer.mjs

* added targeted test plan support for npm run build and npm run validate

* Generate test and review files automatically

* Added local development docs

* Generate test and review files automatically

* Updated LOCAL_DEVELOPMENT.md

* Added local development docs

* Generate test and review files automatically

* Updated README with correct flag

* Generate test and review files automatically

* changed language for test plan flag from 'directory' to 'testplan'

* addressing PR feedback

* Generate test and review files automatically

* Generate test and review files automatically

* Windows support

* fix for bug where test plan summary total was falsely reported

* Generate test and review files automatically

* fix for bug where test plans processed total was incorrect

* Generate test and review files automatically

* now only moving required files to /build/tests/resources; revised .gitattributes to include *.mjs files of build/tests directory

* Generate test and review files automatically

* Updated LOCAL_DEVELOPMENT.md

* Generate test and review files automatically

* Generate test and review files automatically

* re-added README and GitHub action changes

* Generate test and review files automatically

* template typo fix

* Generate test and review files automatically

Co-authored-by: howard-e <[email protected]>
  • Loading branch information
howard-e and howard-e authored Jun 29, 2021
1 parent 4ca7842 commit 693aceb
Show file tree
Hide file tree
Showing 631 changed files with 40,862 additions and 653 deletions.
15 changes: 15 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# build folder
/build/**/*.json -diff -merge
/build/**/*.html linguist-generated=true
/build/*.json -diff -merge
/build/*.html linguist-generated=true
/build/index.html -diff -merge
/build/index.html linguist-generated=true
/build/review/*.html -diff -merge
/build/review/*.html linguist-generated=true
/build/tests/*/*.html -diff -merge
/build/tests/*/*.html linguist-generated=true
/build/tests/*/*.json -diff -merge
/build/tests/*/*.json linguist-generated=true
/build/tests/*/*.mjs -diff -merge
/build/tests/*/*.mjs linguist-generated=true
35 changes: 19 additions & 16 deletions .github/workflows/generate-and-commit-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,27 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}

- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Generate test files
run: npm run create-all-tests
# - name: Generate test files
# run: npm run create-all-tests

- name: Generate review files
run: npm run review-tests
# - name: Generate review files
# run: npm run review-tests

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate test and review files automatically
- name: Generate test and review files
run: npm run build

- uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Generate test and review files automatically
2 changes: 1 addition & 1 deletion .github/workflows/update-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ jobs:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
head-branch-regex: '.*'
title-template: ''
body-template: '[Preview Tests](https://raw.githack.com/w3c/aria-at/%headbranch%/index.html)'
body-template: '[Preview Tests](https://raw.githack.com/w3c/aria-at/%headbranch%/build/index.html)'
body-update-action: prefix
body-uppercase-head-match: false
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/node_modules

.#*

.DS_*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ You can participate by:

This project is managed by the [Authoring Practices Task Force](https://www.w3.org/WAI/ARIA/task-forces/practices/) of the [ARIA Working Group](http://www.w3.org/WAI/ARIA/). The W3C staff contact is [Michael Cooper](http://www.w3.org/People/cooper/).

## Running Locally
Documentation for running this locally is available at [docs/LOCAL_DEVELOPMENT.md](docs/LOCAL_DEVELOPMENT.md).

## Conduct

All contributors to this project are expected to adhere to the [W3C Code of Ethics and Professional Conduct](https://www.w3.org/Consortium/cepc/).
Expand Down
105 changes: 105 additions & 0 deletions build/index.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 693aceb

Please sign in to comment.