samedi 29 août 2015

Prevent Arquillian from downloading apache-tomee before each test

I'm new to Arquillian and I'll have to fix some tests in old projects.

I noticed, that for some reason, each time when I run test, Arquillian downloads apache-tomee-1.7.2-webprofile (I switched to newest version 1.7.2).

Is there a way to prevent this behavior? (Maybe I have to add some maven dependency or startup script?) Because it takes forever to run all tests.

Here is my Arquillian config:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<arquillian xmlns="http://ift.tt/Rj5rcy"
        xmlns:xsi="http://ift.tt/ra1lAU"
        xsi:schemaLocation="
            http://ift.tt/Rj5rcy
            http://ift.tt/U5TLp1">

<container qualifier="tomee" default="true">
    <configuration>
        <property name="httpPort">-1</property>
        <property name="stopPort">-1</property>
        <property name="ajpPort">-1</property>
        <property name="simpleLog">true</property>
        <property name="cleanOnStartUp">true</property>
        <property name="dir">target/apache-tomee-remote</property>
        <property name="appWorkingDir">target/arquillian-test-working-dir</property>
    </configuration>
</container>

And also maven dependencies for tests (all versions are latest and taken from parent.pom):

    <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.arquillian.junit</groupId>
        <artifactId>arquillian-junit-container</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.apache.openejb</groupId>
        <artifactId>arquillian-tomee-remote</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.apache.openejb</groupId>
        <artifactId>ziplock</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.shrinkwrap.resolver</groupId>
        <artifactId>shrinkwrap-resolver-impl-maven</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.shrinkwrap</groupId>
        <artifactId>shrinkwrap-api</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.shrinkwrap.resolver</groupId>
        <artifactId>shrinkwrap-resolver-api-maven</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.arquillian.container</groupId>
        <artifactId>arquillian-container-test-api</artifactId>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.jboss.arquillian.junit</groupId>
        <artifactId>arquillian-junit-core</artifactId>
        <scope>test</scope>
    </dependency>

Aucun commentaire:

Enregistrer un commentaire