Skip to content

Run graphwalker tests

Kristian Karl edited this page Mar 4, 2021 · 7 revisions

graphwalker:test

The plugin will run a GraphWalker test. It will run the generate-sources plugin, and then look for classes with the @GraphWalker annotation, and run that class as a GraphWalker test.

Example

$ mvn graphwalker:test
[INFO] Scanning for projects...
[INFO] 
[INFO] --------------< org.graphwalker.example:java-prestashop >---------------
[INFO] Building GraphWalker PrestaShop Example 4.3.1
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] >>> graphwalker-maven-plugin:4.3.1:test (default-cli) > [graphwalker]test-compile @ java-prestashop >>>
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:generate-sources (generate-sources) @ java-prestashop ---
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:validate-models (default-cli) @ java-prestashop ---
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:generate-sources (default-cli) @ java-prestashop ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ java-prestashop ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 12 resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:compile (default-compile) @ java-prestashop ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:validate-test-models (default-cli) @ java-prestashop ---
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:generate-test-sources (default-cli) @ java-prestashop ---
[INFO] 
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ java-prestashop ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /home/krikar/dev/mbt/graphwalker/graphwalker-example/java-prestashop/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:3.8.0:testCompile (default-testCompile) @ java-prestashop ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] <<< graphwalker-maven-plugin:4.3.1:test (default-cli) < [graphwalker]test-compile @ java-prestashop <<<
[INFO] 
[INFO] 
[INFO] --- graphwalker-maven-plugin:4.3.1:test (default-cli) @ java-prestashop ---
[INFO] ------------------------------------------------------------------------
[INFO]   _____             _   _ _ _     _ _                                   
[INFO]  |   __|___ ___ ___| |_| | | |___| | |_ ___ ___                         
[INFO]  |  |  |  _| .'| . |   | | | | .'| | '_| -_|  _|                        
[INFO]  |_____|_| |__,|  _|_|_|_____|__,|_|_,_|___|_|                          
[INFO]                |_|         (4.3.1)                            
[INFO] ------------------------------------------------------------------------
:
:
Clone this wiki locally