Legacy test modules for ioBroker
This is a legacy repository. Please use the new test framework @iobroker/testing
for new adapters
- add to package.json=>devDependencies:
"@iobroker/legacy-testing": "^0.0.4"
- Remove from package.json=>devDependencies:
chai
- Replace in
tests/testAdapter.js
the codeconst setup = require('./lib/setup');
withconst setup = require('@iobroker/legacy-testing');
- Replace whole file
tests/testPackageFiles.js
withrequire('@iobroker/legacy-testing/tests/testPackageFiles');
Set process.env.JS_CONTROLLER_VERSION to version e.g. 5.0.5-alpha.0-20230617-464b0fd6
- (bluefox) Allowed setting license into common.licenseInformation.license
- (bluefox) Added support for the once mode
- (bluefox) Added support for vis-2 testing
- (foxriver76) create folder on initialization
- (foxriver76) use hardcoded appName instead of inference with a heuristic approach
- (foxriver76) allow re-initialization after config change
- (foxriver76) allow specifying the
rootDir
- (bluefox) Added support for vis-1 testing
- (bluefox) Allowed GUI tests for tab_m.html too
- (bluefox) Added helper files to test react admin GUI
- (bluefox) Made
common.title
not required
- (bluefox) Corrected error if systemConfig requested
- (bluefox) Allowed using the specific version of js-controller
- (bluefox) Added possibility to install additional adapters at start
- (bluefox) Added setOfflineState/getOfflineState
- (bluefox) Extended testPackageFiles.js with checks
- (bluefox) Corrected testPackageFiles.js
- (bluefox) Added testPackageFiles.js
- (bluefox) initial release
MIT License
Copyright (c) 2022-2024 bluefox dogafox@gmail.com
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.