# How to run gatling test from VS Code

**URL:** <https://community.gatling.io/t/how-to-run-gatling-test-from-vs-code/5593>\
**Category:** Gatling (Open-Source)\
**Created:** [April 27, 2020, 11:51am UTC](https://community.gatling.io/t/how-to-run-gatling-test-from-vs-code/5593 "2020-04-27T11:51:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jupiter\_sailormoon](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jupiter\_sailormoon](https://community.gatling.io/u/jupiter_sailormoon)\
**Post date:** [April 27, 2020, 11:51am UTC](https://community.gatling.io/t/how-to-run-gatling-test-from-vs-code/5593/1 "2020-04-27T11:51:10Z")

</div>

I am trying Gatling with VS Code for the first time. Can someone tell me how I can build and run my test from VS code. I am using Scala Build server.

I am, having the following error message  
when I neter the following command : **mvn clean gatling: execute**

> [INFO] Scanning for projects…  
> [INFO] ------------------------------------------------------------------------  
> [INFO] BUILD FAILURE  
> [INFO] ------------------------------------------------------------------------  
> [INFO] Total time: 0.209 s  
> [INFO] Finished at: 2020-04-27T15:47:06+04:00  
> [INFO] ------------------------------------------------------------------------  
> [ERROR] Could not find goal ‘’ in plugin io.gatling:gatling-maven-plugin:3.0.5 among available goals help, recorder, test, verify → [Help 1]  
> [ERROR]  
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.  
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.  
> [ERROR]  
> [ERROR] For more information about the errors and possible solutions, please read the following articles:  
> [ERROR] [Help 1] [MojoNotFoundException - Apache Maven - Apache Software Foundation](http://cwiki.apache.org/confluence/display/MAVEN/MojoNotFoundException)

POM.xml

> \<?xml version="1.0" encoding="UTF-8"?\>
> 
> 4.0.0  
> APITest  
> ApiTest-gatling-maven  
> 1.0-SNAPSHOT
> 
> 1.8 1.8 UTF-8
> 
> \<gatling.version\>3.3.1\</gatling.version\>  
> \<gatling-maven-plugin.version\>3.0.5\</gatling-maven-plugin.version\>
> 
> io.gatling.highcharts gatling-charts-highcharts ${gatling.version} io.gatling gatling-app ${gatling.version} io.gatling gatling-recorder ${gatling.version} io.gatling gatling-maven-plugin ${gatling-maven-plugin.version}

Project structure is as follows:

 ![Capture.PNG](https://europe1.discourse-cdn.com/flex013/uploads/gatling2/original/1X/a4928c763e2fc99fb5cb8195de6d42ce1f4d33a7.png)

---

<div class="post-metadata">

**Author:** ![slandelle](https://dub1.discourse-cdn.com/flex013/user_avatar/community.gatling.io/slandelle/32/4_2.png) [@slandelle](https://community.gatling.io/u/slandelle)\
**Post date:** [April 27, 2020, 12:01pm UTC](https://community.gatling.io/t/how-to-run-gatling-test-from-vs-code/5593/2 "2020-04-27T12:01:20Z")

</div>

The correct goal is test, not execute.

---

<div class="post-metadata">

**Author:** ![jupiter\_sailormoon](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@jupiter\_sailormoon](https://community.gatling.io/u/jupiter_sailormoon)\
**Post date:** [April 28, 2020, 5:57am UTC](https://community.gatling.io/t/how-to-run-gatling-test-from-vs-code/5593/3 "2020-04-28T05:57:59Z")

</div>

Is there a tutorial for this? I am still having error with test
