- (@Apollon77/@copilot) Add validation for JSON files in admin/ and admin/i18n/ directories
- (@Apollon77/@copilot) Logs npm and installation errors to console for easier debugging
- (@copilot) Add log capture methods to TestHarness for integration tests (
getLogs(),assertLog(),clearLogs())
- (@Apollon77) Downgrades chai-as-promised type dependency to same major as main dependency
- (mcm1957) type definitions for chai, mocha and sinon have been moved to dependencies to deliver them to adapter repositories
- NOTE: above change allows removal of chai / mocha / sinon dependencies from adapter package.jsons
- Corrected the
delStatemethod in the adapter mock
- Packages were updated
- Types were migrated to '@iobroker/types' from '@types/iobroker'
- Allow (deprecated) HTML as admin UI in package tests, so old adapters using HTML UI can still utilize the rest of the package tests
- Fix: Use shell to spawn
npmon Windows to prevent hanging - Fix: Duplicate logging of
=> falsewhen testing if JS controller is running
- Add support for the new
licenseInformationfield inio-package.json - Add test for the
tierfield inio-package.json - Honor
onlyWWWflag inio-package.json
- Support for specifying the JS-Controller version in integration tests
- BREAKING: Dropped support for Node.js 12
- Allow skipping test suites (
suite.skip()) and running single test suites (suite.only())
- Fix: Replace the
harnessargument to thesuite()function with agetHarness()function to avoid accessing a stale harness.
- BREAKING: The function signature of
defineAdditionalTestsin integration tests has changed. All user-defined integration tests must now be grouped in one or moresuiteblocks. The adapter will now only be started at the beginning of each suite. See the documentation for details. - BREAKING: The function signature of
harness.startAdapterAndWaithas changed. It now accepts a boolean as the first parameter which controls whether to wait for thealivestate (false) or theinfo.connectionstate (true).
- The loglevel for the adapter and DB instances is now configurable and defaults to
"debug"in both cases
- Allow immediate exit with code
0foronceandsubscribeadapters too
- Allow immediate exit with code
0forscheduleadapters - Check that
npmis not listed as a local dependency inpackage.json - Updated dependencies
- Modifying ioBroker databases now uses the same methods that JS-Controller uses internally. This ensures that the testing is compatible with the
jsonldatabase format. - Testing adapters with adapter dependencies that try to access the databases during installation now works.
- Fix:
adminUI.configis now respected for the config UI check and JSON config is allowed too - Updated dependencies
- Modernized build process
- We now use the nightly js-controller dev builds instead of GitHub installation
- Fix error:
iopackContent.common.titleLangis not iterable
- Fix: The adapter main file now correctly gets located when it is only defined in
package.json, notio-package.json
- Fixed compatibility with the reworked database classes
- Improved shutdown behavior of the adapter
- Fixed a bug where the wrong
js-controllerdependency would be installed
- Unit tests for adapter startup were removed and only log a warning that you can remove them
- Upgrade many packages
- Added missing async functions to adapter mock
- Fixed:
TypeError "Cannot redefine property readyHandler"when usingcreateMocksmore than once - Upgrade to
@types/iobrokerv3.0.12
- Upgrade to
@types/iobrokerv3.0.2 - Added mocks for
supportsFeature,getPluginInstance,getPluginConfig
- Integration tests: For Node.js >= 10, the
engine-strictflag is now set totrueto be in line with newer ioBroker installations
- Unit tests: added mocks for
getAbsoluteDefaultDataDirandgetAbsoluteInstanceDataDir
Sorry, there isn't more yet.