Extending System Tests
Extending System Tests
Prerequisites
- Ensure that the system-tests module is built:
- To build system-tests module, navigate to the
/ep-commerce/extensions/cortex/system-tests module
and run the following
command:
mvn clean install -DskipAllTests
- To build system-tests module, navigate to the
/ep-commerce/extensions/cortex/system-tests module
and run the following
command:
- Ensure that the /ep-commerce/extensions/cortex/system-tests/cucumber/target/com module is set as the test directory in your development environment.
About this task
Elastic Path provides automated tests to ensure the smooth implementation of Cortex when you extend or alter the functionality. These tests ensure that the exiting functionality do not fail when you add new functionality by changing or extending code. Elastic Path recommends configuring tests for extended functionality in a separate module at /ep-commerce/extensions/cortex/ext-system-tests.
Use the following procedure to set up a test extension module in your local development environment:
- Add tests and step definitions.
- Run against a remote Cortex instance.