Create comprehensive test suite for ioBroker.repochecker#506
Draft
Create comprehensive test suite for ioBroker.repochecker#506
Conversation
Co-authored-by: mcm1957 <28575778+mcm1957@users.noreply.github.com>
Co-authored-by: mcm1957 <28575778+mcm1957@users.noreply.github.com>
Co-authored-by: mcm1957 <28575778+mcm1957@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] create tests
Create comprehensive test suite for ioBroker.repochecker
Sep 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR implements a complete test framework for the ioBroker.repochecker tool as requested. The test suite validates that error codes, warnings, and suggestions are properly triggered and provides a solid foundation for systematic testing of all checker modules.
Test Infrastructure
The implementation includes:
test/test-runner.js) with progress reporting and failure analysisTest Coverage
Currently 18+ tests are passing covering core functionality:
Package.json Validation (M000)
README Validation (M600)
GitHub Repository Validation (M800)
Working Error Codes
npm,iobroker.js-controller,@iobroker/plugin-sentryrequestpackage warningsUsage
Test Structure
Documentation
The test suite includes comprehensive documentation explaining:
CI/CD Integration
Added GitHub Actions workflow (
.github/workflows/test.yml) that:Foundation for Future Work
While this PR establishes a working test foundation, complete coverage of all ~500 error codes will require additional work to:
The infrastructure provided supports adding these tests incrementally while maintaining the working foundation.
Addressing #505.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
cdn.jsdelivr.net/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/unit/M000_PackageJson.test.js(dns block)/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/unit/M100_IOPackageJson.test.js(dns block)/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/integration/main-checker.test.js(dns block)data.jsdelivr.com/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/unit/M500_Code.test.js(dns block)https://api.github.com/repos/--helpnode index.js --help(http block)https://api.github.com/repos/ioBroker/ioBroker.javascriptnode index.js REDACTED main --local --debug(http block)https://api.github.com/repos/test/ioBroker.test-adapter/git/trees/undefined/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/unit/M500_Code.test.js(http block)https://api.github.com/repos/test/ioBroker.test-adapter/issues/usr/local/bin/node /home/REDACTED/work/ioBroker.repochecker/ioBroker.repochecker/test/unit/M800_Github.test.js(http block)If you need me to access, download, or install something from one of these locations, you can either:
💬 Share your feedback on Copilot coding agent for the chance to win a $200 gift card! Click here to start the survey.