Skip to content

Commit

Permalink
Merge pull request #83 from IBMa/html-report-tools
Browse files Browse the repository at this point in the history
Html report tools
  • Loading branch information
tombrunet authored May 22, 2020
2 parents f0ea906 + f6e600e commit a05d292
Show file tree
Hide file tree
Showing 23 changed files with 1,064 additions and 433 deletions.
2 changes: 1 addition & 1 deletion accessibility-checker-extension/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@types/jest": "^24.0.25",
"@types/markdown-to-jsx": "^6.11.0",
"@types/node": "^13.1.4",
"@types/react": "16.9.11",
"@types/react": "16.9.35",
"@types/react-dom": "^16.9.4",
"@types/react-redux": "^7.1.5",
"@types/react-test-renderer": "^16.9.1",
Expand Down
3 changes: 2 additions & 1 deletion accessibility-checker/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ dist
dependencies
npm-debug.log
results
package-lock.json
package-lock.json
src/lib/reporters/genReport.js
5 changes: 3 additions & 2 deletions accessibility-checker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"scripts": {
"lint": "eslint src",
"test": "mocha -R dot test/mocha/**/*.test.js",
"build": "cd ../accessibility-checker-engine && npm install && npm run build && npm run build-debug && npm run build-node && npm run build-node-debug",
"build": "npm run build:report && cd ../accessibility-checker-engine && npm install && npm run build && npm run build-debug && npm run build-node && npm run build-node-debug",
"build:report": "(cd ../report-react && npm run build && cd ../accessibility-checker && cp ../report-react/build/genReport.js ./src/lib/reporters/)",
"package:zip": "rm -rf package && gulp --gulpfile gulp/gulpfile.js && chmod u+x package/bin/*.js && cd package && npm pack",
"package:npm": "rm -rf package && gulp --gulpfile gulp/gulpfile.js && chmod u+x package/bin/*.js"
},
Expand Down Expand Up @@ -49,7 +50,7 @@
"gulp-util": "^3.0.7",
"gulp-zip": "^5.0.0",
"jasmine": "^3.5.0",
"mocha": "^6.2.0",
"mocha": "^7.1.0",
"natives": "1.1.6",
"rimraf": "^3.0.0",
"selenium-webdriver": "^3.6.0",
Expand Down
4 changes: 2 additions & 2 deletions accessibility-checker/src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ reportLevels:
- potentialrecommendation
- manual

# Optional - Which type should the results be outputted to
# Valid values: json, csv
# Optional - In which fornats should the results be output
# Valid values: json, csv, html
# Default: json
outputFormat:
- json
Expand Down
4 changes: 2 additions & 2 deletions accessibility-checker/src/lib/ACConfigLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ function loadConfigFromYAMLorJSONFile() {
* @memberOf this
*/
async function processConfiguration(config) {
constants.DEBUG && console.log("START 'processKarmaConfiguration' function");
constants.DEBUG && console.log("START 'processConfiguration' function");

// Variable Decleration
var ACConfig = null;
Expand Down Expand Up @@ -347,7 +347,7 @@ async function processConfiguration(config) {
// In the case the Karma config is set to config.LOG_DEBUG then also enable the accessibility-checker debuging
ACConfig.DEBUG = constants.DEBUG;

constants.DEBUG && console.log("END 'processKarmaConfiguration' function");
constants.DEBUG && console.log("END 'processConfiguration' function");
return ACConfig;
}

Expand Down
2 changes: 1 addition & 1 deletion accessibility-checker/src/lib/ACConstants.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ var pathLib = require('path');

// Used to specify all the constant
var constants = {
DEBUG: false,
DEBUG: process.env.DEBUG === "true",

policies: ["IBM_Accessibility"],

Expand Down
Loading

0 comments on commit a05d292

Please sign in to comment.