Skip to content

Commit

Permalink
Generated tests and review pages output improvements (#441)
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 <howard-e@users.noreply.github.com>

* 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

Co-authored-by: howard-e <howard-e@users.noreply.github.com>
  • Loading branch information
howard-e and howard-e authored Jun 14, 2021
1 parent 5303457 commit 01c2656
Show file tree
Hide file tree
Showing 638 changed files with 21,266 additions and 4,301 deletions.
13 changes: 13 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# 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
11 changes: 7 additions & 4 deletions .github/workflows/generate-and-commit-files.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,14 @@ jobs:
- 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

- name: Generate test and review files
run: npm run build

- uses: stefanzweifel/git-auto-commit-action@v4
with:
Expand Down
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
11 changes: 9 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
/node_modules

.#*

.DS_*

# Ignore locally generated files files
/index.html
/review
/tests/*/*.html
/tests/*/*.json

# Preserve all the contents of /tests/resources
!/tests/resources/*
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,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
16 changes: 8 additions & 8 deletions index.html → build/index.html

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

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

Loading

0 comments on commit 01c2656

Please sign in to comment.