# Testing `mdget` includes a comprehensive Makefile-based test suite. To run all tests: make test-all Or simply: make The test suite covers: * **Command-line argument parsing**: tests for help, version, URL validation, and flag handling * **HTTP connectivity**: uses a mock HTTP server to test fetching and User-Agent headers * **HTML to Markdown conversion**: verifies proper conversion of headings, paragraphs, lists, links, and other elements * Tests writing results to files, for invalid URLs, timeouts, HTTP errors, and other failure scenarios. To run specific test categories: make test-args # Test command-line arguments make test-http # Test HTTP connectivity make test-conversion # Test HTML to Markdown conversion make test-output # Test file output make test-errors # Test error conditions make test-build # Test build and execution For a complete list of available commands: make help