Overview:
HTMLTestRunner_Chart offers a refined solution for generating test reports based on Python's unittest framework. With a focus on delivering seamless outputs, this tool not only enhances the traditional reporting process but also introduces advanced features aimed at improving the user's experience and test result visibility. The integration of visual elements like pie charts and the capability to manage historical data further elevates its utility, making it an essential asset for developers and testers aiming to keep track of their testing outcomes.
Features:
- Optimized Content Display: The report can be presented in Chinese, addressing previous encoding issues related to assertion failures.
- Error and Failure Screenshots: Automatically captures and embeds screenshots of errors and failed test cases directly into the HTML report.
- Pie Chart Statistics: Visualizes the distribution of test failures in pie charts, facilitating quick insights into test performance.
- Retry on Failure: Introduces a retry mechanism for failed test cases, allowing them to rerun automatically and improve overall reliability.
- Historical Data Management: Saves the last 10 test results and displays them through bar charts, enabling easy comparison over time.
- Compatibility: Fully compatible with both Python 2.x and 3.x, ensuring versatility across different development environments.
- Customizable Result Storage: Supports the saving of test results in JSON format, useful for integration with other systems and tools.
- Error Handling Enhancements: Modifications to key functions improve error handling, ensuring that issues during testing do not obstruct the overall reporting process.