Conversation
…5.1.x Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
|
@copilot Please upgrade the iobroker/testing dependency to 5.1.1 to see if CI tests work now |
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
|
@copilot Please add to your instructions that the "https://github.com/ioBroker/create-adapter/blob/master/.github/test_template_creation.sh" file should also be executed as part of the tests. This is also executed by the CI tests and was failing before the version increase to 5.1.1 |
|
@copilot Please also add a migration file and a changelog entry to the PR. And please finally update your instructions so that this is never forgotten to do! |
…est suite Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Added |
|
@copilot By incorporating the template generation tests into the "npm run test" the CI now executes this twice because the script is still executed also alone. Please remove the (now) separate test step |
…grade, update PR requirements Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Added migration file at |
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
Removed the duplicate template creation test step from the CI workflow. The template generation test now only runs once as part of the main test suite ( |
Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
templates/package.json.ts
Outdated
| ...([ | ||
| // testing and translations are always required | ||
| "@iobroker/testing", | ||
| "@iobroker/testing@^5.1.1", |
There was a problem hiding this comment.
@copilot No need to specify the exact version here, this should automatically be resolved to the latest available which is ok
There was a problem hiding this comment.
Removed the exact version specification from @iobroker/testing dependency. It now automatically resolves to the latest available version. Commit 8a597b1.
…plates Co-authored-by: Apollon77 <11976694+Apollon77@users.noreply.github.com>
This PR upgrades the create-adapter tool to use @iobroker/testing 5.1.1, which now incorporates many test dev-dependencies that can be removed from generated adapter templates. Additionally, it integrates the template creation test into the main test suite and eliminates duplicate test execution in CI.
Key Changes
Dependency Management:
Testing Infrastructure:
test:templatesnpm script that runs the template creation testnpm test)Documentation & Process:
Dependencies Removed
The following dependencies are no longer added to generated adapter
package.jsonfiles since they're now included in@iobroker/testing5.1.1:Runtime dependencies:
chai(^4.5.0)chai-as-promised(^7.1.2)mocha(^11.7.1)sinon(^19.0.5)sinon-chai(^3.7.0)proxyquire(^2.1.3)Type definitions:
@types/chai(^4.3.20)@types/chai-as-promised(^8.0.2)@types/mocha(^10.0.10)@types/sinon(^17.0.4)@types/sinon-chai(^3.2.12)@types/proxyquire(^1.3.31)Impact
package.jsonfiles with fewer dependencies@iobroker/testingFixes #1165.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.