On back-end, the tests are written using frameworks:
The former support for tests in TestNG has been removed to make tests writing more simple - the annotations testng vs. junit do not compete with each other. To write load tests, the product jMeter or SoapUI may be used.
Tests classification (super classes are prepared for the individual types):
unit test
AbstractUnitTest
integration test
AbstractIntegrationTest
workflow integration test
AbstractWorkflowTest
rest integration test
AbstractRestTest
Use TestHelper
for data preparing in integration on rest tests.
Maven has been configured to launch all types of tests.
In case the functionality has already been exactly defined, it is possible to define the tests the functionality will comply with (input, output) already before the implementation itself - the tests can fittingly complete the entering. When the developer submits the functionality for the test / external examination, a test covering the newly developed functionality must exist - the basis is a unit test completed, depending on its type, by integration / workflow or rest test.
On front-end, the tests are written using frameworks:
The tests are placed into the file test
with the -test
suffix.
In case the functionality has already been exactly defined, it is possible to define the tests the functionality (component, service) should satisfy (input, output) already before the implementation itself - the tests can fittingly complete the entering.
Before the developer submits the functionality for test / external examination, the following must exist:
Icon-test.js
) or service (e.g. IdentityWorkingPositionService-test
),FlashMessagesActions-test
)nock
, redux-thunk
will be used - the aim is to test the components which depend on the context and possibly also on the rest service. nock
-DdocumentationOnly=true
into maven command.