iModelHub client tests
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
This package contains unit and integration tests for the iModelHub client (@bentley\imodelhub-client
npm package).
Prerequisites
Refer to the iTwin.js prerequisites
Running the tests
Start by running the build instructions from this repository
There are multiple sets of tests:
-
npm test
will run the unit tests -
npm run test:integration
will run the integration tests -
npm run test:imodel-bank
will run the iModelBank tests
Test coverage
Since this package contains the test for other packages, the test coverage output is not found in this package output, but in the appropriate package's output.
The tests contained in this package are configured to generate incremental coverage from other packages. For example, if npm run cover
has already been run for @bentley/imodelhub-client
then npm run cover
is run for this package, this package output will contain both the combined coverage results.
This package generates test coverage for @bentley/backend-itwin-client
(/core/backend-itwin-client) and @bentley/imodelhub-client
(/clients/imodelhub).
The coverage output can be found at lib/test/coverage/full-stack-tests
from the root of the covered package.