<commit_before>[![Build Status](https://travis-ci.org/Codearte/accurest-maven-plugin.svg?branch=master)](https://travis-ci.org/Codearte/accurest-maven-plugin) [![GitHub issues](https://img.shields.io/github/issues/Codearte/accurest.svg)](https://github.com/Codearte/accurest/labels/maven) [![Maven Central](https://img.shields.io/maven-central/v/io.codearte.accurest/accurest-maven-plugin.svg)](https://maven-badges.herokuapp.com/maven-central/io.codearte.accurest/accurest-maven-plugin)

Accurate REST Maven Plugin
====

Converting [Accurest](https://github.com/Codearte/accurest/wiki/1.-Introduction) GroovyDSL into WireMock stub mappings:

    mvn io.codearte.accurest:accurest-maven-plugin:convert
    
or shortly <sup>*</sup>

    mvn accurest:convert
    
For more information please go to the [Accurest Wiki](https://github.com/Codearte/accurest/wiki/2.2-Maven-Project) or [Plugin Documentation Site](http://codearte.github.io/accurest-maven-plugin/plugin-info.html).
  

    

Accurest Runner
---

    mvn io.codearte.accurest:accurest-maven-plugin:run
    
or shortly <sup>*</sup>

    mvn accurest:run

---

<sup>*</sup> Additional configuration inside `~/.m2/settings.xml` is required.

```xml
<settings>
  <pluginGroups>
    <pluginGroup>io.codearte.accurest</pluginGroup>
  </pluginGroups>
</settings>
<commit_msg>readme about running stubs<commit_after>[![Build Status](https://travis-ci.org/Codearte/accurest-maven-plugin.svg?branch=master)](https://travis-ci.org/Codearte/accurest-maven-plugin) [![GitHub issues](https://img.shields.io/github/issues/Codearte/accurest.svg)](https://github.com/Codearte/accurest/labels/maven) [![Maven Central](https://img.shields.io/maven-central/v/io.codearte.accurest/accurest-maven-plugin.svg)](https://maven-badges.herokuapp.com/maven-central/io.codearte.accurest/accurest-maven-plugin)

Accurate REST Maven Plugin
====

Converting [Accurest](https://github.com/Codearte/accurest/wiki/1.-Introduction) GroovyDSL into WireMock stub mappings:

    mvn io.codearte.accurest:accurest-maven-plugin:convert
    
or shortly <sup>*</sup>

    mvn accurest:convert
    
For more information please go to the [Accurest Wiki](https://github.com/Codearte/accurest/wiki/2.2-Maven-Project) or [Plugin Documentation Site](http://codearte.github.io/accurest-maven-plugin/plugin-info.html).
  

    

Accurest Stub Runner
---

Run contracts from current directory:

    mvn io.codearte.accurest:accurest-maven-plugin:run
    
or shortly <sup>*</sup>

    mvn accurest:run

Running stubs from repository:

    mvn accurest:run -Dstubs="org.springframework:gs-rest-service"  

where `org.springframework:gs-rest-service` is artifact with 'stubs` classifier contains wiremock mappings.

---

<sup>*</sup> Additional configuration inside `~/.m2/settings.xml` is required.

```xml
<settings>
  <pluginGroups>
    <pluginGroup>io.codearte.accurest</pluginGroup>
  </pluginGroups>
</settings>

{'fraction_non_alphanumeric': 0.15331964407939766, 'fraction_numerical': 0.0027378507871321013, 'mean_word_length': 4.631984585741812, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 16, 'lorem ipsum': 0, 'www.': 0, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7601076', 'n_tokens_mistral': 1085, 'n_tokens_neox': 1009, 'n_words': 144}