Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to output "Executions" to report #1172

Open
ebisawage opened this issue Oct 17, 2024 · 2 comments
Open

How to output "Executions" to report #1172

ebisawage opened this issue Oct 17, 2024 · 2 comments

Comments

@ebisawage
Copy link

ebisawage commented Oct 17, 2024

I am currently following the documentation provided at https://allurereport.org/docs/jest/ to generate test reports using allure-jest for Jest testing.
However, unless I explicitly define steps like allure.step(~) within my tests, the Execution section of the report shows the message: “No information about test execution is available.”

Could you please guide me on how to automatically populate the Execution details in the Allure report without manually defining the steps?

For your reference, here is the current configuration of my jest.config.ts:

module.exports = {
    preset: "ts-jest",
    testEnvironment: "allure-jest/node",
    testMatch: ["**/*.test.ts"],
    verbose: true,
};

package.json is here

{
    "name": "api-test",
    "version": "1.0.0",
    "description": "",
    "main": "index.js",
    "scripts": {
        "test": "npx jest --config jest.config.ts",
    },
    "keywords": [],
    "author": "",
    "license": "ISC",
    "devDependencies": {
        "@types/jest": "^29.5.12",
        "@types/properties-reader": "^2.1.3",
        "@types/supertest": "^6.0.2",
        "allure-commandline": "^2.29.0",
        "allure-jest": "^3.0.5",
        "allure-js-commons": "^3.0.5",
        "eslint": "^8.57.0",
        "eslint-config-prettier": "^8.5.0",
        "eslint-plugin-playwright": "^1.6.2",
        "eslint-plugin-prettier": "^5.2.1",
        "eslint-plugin-simple-import-sort": "^12.1.0",
        "jest": "^29.7.0",
        "jest-environment-node": "^29.7.0",
        "prettier": "^3.3.2",
        "properties-reader": "^2.3.0",
        "swagger2openapi": "^7.0.8",
        "ts-jest": "^29.1.5",
        "ts-node": "^10.9.2",
        "tsconfig-paths-jest": "^0.0.1",
        "typescript": "^5.4.5"
    }
}

I would greatly appreciate any advice or suggestions you can provide on this matter.

@baev
Copy link
Member

baev commented Oct 18, 2024

What details would you like to be added to the report automatically?

@ebisawage
Copy link
Author

ebisawage commented Oct 23, 2024

What details would you like to be added to the report automatically?

I would like to be added expect() and implementation details, etc.
For example, when I execute playwright test, report is look like this picture.
image

I'm writing an API test, so it would be great to know the details of the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants