Skip to content

Logger statements in the Reports #64

Closed
@tajeshwarbhumra

Description

@tajeshwarbhumra

Is your feature request related to a problem? Please describe.
I have been using jest framework for integration testing and going to develop some 1000+ jest tests for the same. I am using jest-html-reporter for reporting. Is there anyway I can publish additional logging statements/test steps in the reports for both pass and fail test cases?

Describe the solution you'd like
I am requesting for some additional feature to print statements/steps in both passed and failed tests case, so that by looking report only one can able to analysis. Something like below :

test(Dummy Test, () => {
step("Step 1 : Connecting internet ")
step("Step 2 : Connecting to VM ")
step("Step 3 : Asserting connections details ")
expect(status).toEqual(200)
step("Test completed ")
});

Describe alternatives you've considered
If not the above solution, is there any way that I can print console.log in the report? I am using "includeConsoleLog : true" in jest.config.js and also "verbose=false" , but still I am not able to print console.log
Currently my jest.config.js looking like this :

"reporters": [
"default",
["jest-html-reporters", {
"publicPath": "./html-report",
"filename": "report.html",
"expand": true,
includeConsoleLog : true,
}]
],

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions