Skip to content

Add test suite, CI/CD, and contribution docs - #426

Open
aman179102 wants to merge 2 commits into
aboul3la:masterfrom
aman179102:master
Open

Add test suite, CI/CD, and contribution docs#426
aman179102 wants to merge 2 commits into
aboul3la:masterfrom
aman179102:master

Conversation

@aman179102

Copy link
Copy Markdown

Summary

Adding comprehensive test suite, CI/CD pipelines, and contribution documentation to Sublist3r.

Changes

Testing (12 tests, all passing)

  • Utility tests: color, error handling, file writing, subdomain sorting, banner
  • Engine tests: initialization, max subdomains check
  • Port scanning tests: initialization with hosts/ports
  • Main function: invalid domain handling

CI/CD

  • ci.yml: Automated testing on Python 3.8-3.12 using GitHub Actions

Documentation

  • CONTRIBUTING.md with setup and testing guide
  • CODE_OF_CONDUCT.md
  • SECURITY.md
  • PR template with testing checklist

Verification

12 passed in 0.50s

- Added 12 pytest tests covering utilities, engine initialization, port scanning
- Added CI/CD workflows (GitHub Actions for Python 3.8-3.12)
- Added contribution docs (CONTRIBUTING, CODE_OF_CONDUCT, SECURITY, PR template)
- Tests cover: subdomain sorting, file writing, banner, engine init, port scanning, error handling
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