Skip to content

Conversation

@ay-bh
Copy link

@ay-bh ay-bh commented Mar 27, 2024

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Currently, there is no automated testing in place to validate the functionalities of the mod_report module.

Issue Number: N/A

What is the new behavior?

This PR introduces a series of unit tests aimed at validating the correctness and reliability of the mod_report module. The tests cover several key functionalities:

  • Processing profile traffic to determine if the captured data is sufficient for report generation.
  • Ignoring files that do not meet the minimum size requirements for processing.
  • Generating HTML reports from processed traffic data, including handling of session data for report generation.
  • Ensuring compatibility with expected inputs and outputs, and verifying the correct generation of PDF documents from HTML reports.

Other information

Run pytest tests/test_mod_report.py from the project root directory to check.

Please ensure you have all dependencies needed to simulate mod_report.py installed using pip, for reference please check mod_report/requirements.txt

@ay-bh ay-bh changed the title Add unit tests Add unit tests for mod_report Mar 27, 2024
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

Successfully merging this pull request may close these issues.

1 participant