Assuring top quality is paramount in producing awesome software. Test driven development plays a key role in this process. Liferay’s tooling and integration with standard test frameworks support test driven development and help you reach quality milestones. Here are the ways Liferay facilitates testing:

  • Unit testing: Using JUnit to unit test Liferay Portal modules in Gradle and Maven build environments and in IDEs that have JUnit plugins is seamless.
  • Integration testing: The Arquillian Extension for Liferay lets you spin up a Liferay Portal instance, deploy modules whose components provide and consume services, and exercise their APIs. Liferay’s @Inject annotation allows you to inject service instances into tests.
  • Functional testing: Selenium and the Arquillian Extension for Liferay support functional UI testing.
  • Code Coverage: JaCoCo analyzes and reports test code coverage.
  • Slim Runtime: Liferay Slim Runtime facilitates testing modules (including Service Builder modules) in a fast, lightweight environment.

Unit testing is the first step in test driven development.

Unit Testing with JUnit

Test driven development is a best practice for any developer. Unit tests verify and validate functionality of classes and methods in isolation by “mocking” external dependencies. One of the most...

Read More

Liferay Slim Runtime

The Liferay Slim Runtime provides the bare necessities for running Service Builder modules. It’s useful for testing applications quickly in a Liferay runtime environment free of Liferay add-ons....

Read More

Injecting Service Components into Tests

You can use Liferay Portal’s @Inject annotation to inject service components into a test, like you use the @Reference annotation to inject service components into a module component. @Inject uses...

Read More

Arquillian Extension for Liferay Example

Arquillian is an extensible Java testing platform that’s designed to make integration testing easy. Arquillian manages the lifecycle of setting up, starting, or connecting to a container (e.g.,...

Read More
0 (0 Votes)
Providing the User Personal Bar Previous