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

Add unit tests for mod_report #61

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

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