netdaemon
netdaemon copied to clipboard
Adding performance tests
Breaking change
Proposed change
This PR adds simple performance tests for NetDaemon. For now it is not able to run as part of the CI/CD pipeline but can be run locally. This is something that will be added in the future.
It adds a performance test server that fakes HA and a NetDaemon client project that contains apps that meassure and logs performance.
The PR also adds a small fix to HomeAssistantConnection that I found when writing the performance tests.
Type of change
- [ ] Dependency upgrade
- [ ] Bugfix (non-breaking change which fixes an issue)
- [ ] New feature (which adds functionality to an existing integration)
- [ ] Breaking change (fix/feature causing existing functionality to break)
- [x] Code quality improvements to existing code or addition of tests
Additional information
- This PR fixes or closes issue: fixes #
- This PR is related to issue:
- Link to documentation pull request:
Checklist
- [x] The code change is tested and works locally.
- [x] Local tests pass. Your PR cannot be merged unless tests pass
- [x] The code compiles without warnings (code quality check)
- [x] Tests have been added to verify that the new code works.
If user exposed functionality or configuration are added/changed:
- [ ] Documentation added/updated for http://netdaemon.xtz