Closed
Description
Tests type and configuration
Unit tests can be generated in No Configuration
and Spring configuration
mode.
Integration tests can be generated only with existing Spring configuration
.
Tests type and mock strategy
Unit tests are generated with Engine only.
- in
No configuration
mode any mock strategy can be used, default one isMock everything outside the class
. - in
Spring configuration
mode is defaulted toMock using Spring configuration
and disabled.
Integration tests are generated with Fuzzing only, so mocking is defaulted to Do not mock
and disabled.
Tests type and other settings
- When
No Configuration
orXML configuration
is selected, Tests type is disabled and defaulted toUnit tests
. - When existing Spring configuration is selected (excluding XML configurations), Tests type is enabled and two options available:
Integration tests
andUnit tests
. - When
Integration tests
is selected, Test frameworks must containJUnit4
andJUnit5
TestNG
must disappear from the list of suggestions. - When
Integration tests
is selected,XML configuration
list must disappear from the list of suggestions in Spring configuration.
Environment
IntelliJ IDEA Ultimate 2023.1
Summarizing. How UI is working in Spring projects
- If Spring dependency is detected, there appear 3 additional controls:
Spring configuration
,Tests type
,Active profiles
They influence one another,Mocking strategy
,Mock static methods
andParameterized tests
- If
No configuration
is selected,
a.Tests type
=Unit tests
and disabled
b.Active profiles
=default
and disabled
c.Mocking strategy
is enabled can have any value from regular suggestion list - When some
Spring configuration
is selected from list of suggestions,
a.Tests type
=Unit tests
by default,
b. if existing Spring configuration is selected and it is not XML-based -Integration tests
is present in list of suggestions forTests type
c.Parameterized tests
= false and disabled - If one of XML-based configurations is selected as
Spring configuration
,
a.Tests type
=Unit tests
- When
Unit tests
is selected together with one of existingSpring configuration
,
a.Mocking strategy
=Mock using Spring configuration
and disabled
b.Mock static methods
= true and disabled - When
Integration tests
is selected together with one of existingSpring configuration
,
a.Mocking strategy
=Do not mock
and disabled
b.Mock static methods
= false and disabled - If
Mocking strategy
isDo not mock
- with or withoutSpring configuration
,
a.Mock static methods
= false and disabled
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done