Randomize the CLI's tests #1317
Labels
cli-package
igniteui-cli package
commands
core
@igniteui/cli-core package
enhancement
🆕 status: new
priority: low
schematics
templates
component OR scenario template
tests
Description
Currently, the CLI's tests are ran in a particular order. First acceptance tests and then unit tests. The acceptance tests create an instance of the
App.container
which is later on accessed by the unit tests. If the unit tests are ran before the acceptance tests, they will throw. Additionally, running only the unit tests is impossible unless a call toApp.initialize
is made at the beginning of the spec file. The current implementation is not correct since we should not have to rely on test order at all and every test case should be isolated.As a side note - for all of the unit tests, we may want to ensure that any calls to the
App.container
are fully mocked and no calls toApp.initialize
are needed to run the tests normally.Expected result
The CLI's tests should be completely randomized on every run.
The text was updated successfully, but these errors were encountered: