Unit tests without start the repository

cancel
Showing results for 
Search instead for 
Did you mean: 
lucastancapiano
Partner

Unit tests without start the repository

I share with you a library that allows you to run unit tests without needing to have an active ACS or APS. The mechanism is to use alfresco mock services to reach your implementations such as workflows, webscripts or actions and test them quickly. Simply add the following library, write your own test and run it

<dependency>
    <groupId>it.vige</groupId>
    <artifactId>alfresco-tests</artifactId>
    <version>${acs.version}</version>
    <scope>test</scope>
</dependency>


Here you can find further information

1 Reply
deborah621powel
Member II

Re: Unit tests without start the repository

The alfresco-tests library seems like a useful tool for running unit tests without requiring an active ACS or APS. By leveraging mock services, developers can efficiently test their implementations, including workflows, webscripts, and actions. Create your unit tests, focusing on the specific components you want to test (workflows, webscripts, or actions). You can use the mock services provided by the library to simulate interactions with Alfresco services. Execute your tests, and the library will handle the necessary mocking and setup. This approach allows you to validate your code without needing a live ACS or APS instance.                               Indigo credit card access

<dependency>
<groupId>it.vige</groupId>
<artifactId>alfresco-tests</artifactId>
<version>${acs.version}</version>
<scope>test</scope>
</dependency>