Skip to content

Commit

Permalink
Added u-test report and code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Oct 20, 2023
1 parent 12eaaf9 commit 35e62d2
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ Gemfile.lock
/doc_generator/*.json
*.env
package-lock.json
coverage/**/*
coverage/**/*
junit.xml
10 changes: 10 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,16 @@ module.exports = {
tsConfig: "tsconfig.test.json"
}
},
reporters: [
"default",
[ "jest-junit", {
"suiteNameTemplate": "{filepath}",
"outputDirectory": ".",
"outputName": "junit.xml"
} ]
],
collectCoverage: true,
coverageReporters: ["json", "lcov", "text", "html", "text-summary", "cobertura"],
roots: ["tests"],
transform: {
"^.+\\.(ts|tsx)?$": "ts-jest"
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"generate-json-webpack-plugin": "0.2.1",
"husky": "^2.7.0",
"jest": "^23.6.0",
"live-server": "1.2.0",
"jest-junit": "^16.0.0",
"live-server": "^1.2.2",
"rimraf": "2.5.4",
"standard-version": "^8.0.1",
"surveyjs-doc-generator": "git+https://github.com/surveyjs/surveyjs-doc-generator.git",
Expand Down
2 changes: 1 addition & 1 deletion src/doc_controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export interface IDocOptions {
isRTL?: boolean;
/**
* Specifies whether to include only selected choices when PDF Generator renders a [Multi-Select Dropdown (Tag Box)](https://surveyjs.io/form-library/examples/how-to-create-multiselect-tag-box/) question.
*
*
* Default value: `false` (include all choices)
*/
tagboxSelectedChoicesOnly?: boolean;
Expand Down
2 changes: 1 addition & 1 deletion src/pdf_render/pdf_brick.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export class PdfBrick implements IPdfBrick {
public fontSize: number;
/**
* The color of text within the brick.
*
*
* Default value: `"#404040"`
*/
public textColor: string = SurveyHelper.TEXT_COLOR;
Expand Down

0 comments on commit 35e62d2

Please sign in to comment.