Skip to content

Tests: Add Unit Tests for Graph Builder #19

Description

@secwexen

Unit Tests for Graph Builder Module

The graph_builder.py module is a core part of AAPP‑MART, responsible for constructing attack graphs. Currently, it lacks basic unit tests. Adding simple tests will help ensure stability and make it easier for new contributors to understand the codebase.

Tasks:

  • Create a new test file under tests/ (test_graph_builder.py).
  • Write unit tests for key functions in graph_builder.py.
  • Verify that tests run successfully with pytest.
  • Ensure coverage includes at least:
    • Graph creation with sample input
    • Node/edge addition
    • Error handling for invalid input

Why this is a good first issue:

  • Small, self‑contained task.
  • Helps contributors learn the project structure.
  • Improves code quality and reliability.

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is neededpythonPull requests that update python codetestsIssues or pull requests related to adding, updating, or improving automated tests.

Projects

Status
Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions