h2spec-maven-plugin Maven Mojo

Maven plugin which allows to run h2spec test suite as part of the build.

Лицензия

Лицензия

Категории

Категории

Maven Компиляция и сборка H2 Данные Базы данных
Группа

Группа

com.github.madgnome
Идентификатор

Идентификатор

h2spec-maven-plugin
Последняя версия

Последняя версия

0.6
Дата

Дата

Тип

Тип

maven-plugin
Описание

Описание

h2spec-maven-plugin Maven Mojo
Maven plugin which allows to run h2spec test suite as part of the build.
Ссылка на сайт

Ссылка на сайт

https://github.com/madgnome/h2spec-maven-plugin
Система контроля версий

Система контроля версий

https://github.com/madgnome/h2spec-maven-plugin

Скачать h2spec-maven-plugin

Как подключить последнюю версию

<plugin>
    <groupId>com.github.madgnome</groupId>
    <artifactId>h2spec-maven-plugin</artifactId>
    <version>0.6</version>
</plugin>

Зависимости

compile (6)

Идентификатор библиотеки Тип Версия
org.apache.maven : maven-plugin-api jar 2.0
org.apache.maven : maven-artifact jar 2.2.1
org.apache.maven : maven-project jar 2.0.6
org.apache.commons : commons-exec jar 1.3
org.apache.maven.surefire : surefire-report-parser jar 2.19
org.codehaus.plexus : plexus-archiver jar 3.4

provided (1)

Идентификатор библиотеки Тип Версия
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.2

test (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 3.8.1

Модули Проекта

Данный проект не имеет модулей.

Maven h2spec test suite Plugin

Maven plugin which allows to run the h2spec test suite as part of your maven build.

Requirements

If you want to have the Test suite executed as part of your build you need to provide a Main class which will startup a HTTP/2 server.

Adding it to your build

Adding the test suite and make it part of your build is as easy as adding it to the pom.xml file of your maven project:

<build>
    <plugins>
      <plugin>
        <groupId>com.github.madgnome</groupId>
        <artifactId>h2spec-maven-plugin</artifactId>
        <version>0.1-SNAPSHOT</version>
        <configuration>
          <mainClass>io.netty.testsuite.http2.Http2Server</mainClass>
          
          <!-- Optional configuration -->
          <!-- ---------------------- -->
          <!-- The port to bind the server on. Default is to choose a random free port. -->
          <port>-1</port>
          
          <!-- The number of milliseconds to wait for the server to startup. Default is 10000 ms. -->
          <waitTime>10000</waitTime>
          
          <!-- A list of cases to exclude. Default is none. -->
          <excludeSpecs>
            <excludeSpec>3.8 - Sends a GOAWAY frame</excludeSpec>
          </excludeSpecs>
          
          <skip>${skipHttp2Testsuite}</skip>
        </configuration>
        <executions>
          <execution>
            <phase>test</phase>
            <goals>
              <goal>h2spec</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

This will execute the h2spec tests as part of the test phase and fail the phase if one of the test cases fails.

After the run was complete you will find test-reports in the target/test-classes/reports/TEST-h2spec.xml, which contains all the details about every test case.

Версии библиотеки

Версия
0.6
0.5
0.4
0.3