Integration of Cypress with Testreport.io
TestReport.io
Last Update 5 ay önce
Follow these detailed steps to successfully integrate your Cypress project with Testreport.io:
Step 1: Create Configuration File
- Create a file named testreport.config.js in the root directory of your Cypress project.
- Copy the code snippet froom testreport website and paste it into the testreport.config.js file.
Step 2: Set Set targetDir
In the configuration file, specify the path where the index.html test report file is generated.
Step 4: Set screenshotsDir and videoDir
Configure paths for storing screenshots and videos of failed test cases:
Screenshot Example:
Video Example:
Step 5: Install testreport-io Dependency
- Install the testreport-io dependency by executing the following command in your terminal:
Step 6: Add the Upload Script
- Include the upload script in your package.json file to enable automatic uploading of your test reports:
Step 6: Run the Upload Command
- Execute the upload command to send your test reports to Testreport.io
By following these steps, you will seamlessly integrate Cypress testing with Testreport.io, enabling efficient tracking and management of test reports.