File: how-to-build-and-develop-with-intellij.md

package info (click to toggle)
libowasp-esapi-java 2.4.0.0-2.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,000 kB
  • sloc: java: 35,401; xml: 1,630; sh: 373; makefile: 2
file content (14 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# How to Build and Develop ESAPI with IntelliJ

IntelliJ is set up to run pretty seamlessly out of the box, but there are still a few configuration options we need to change in order to get Unit Tests to run properly.

1. Click `Run` > `Edit Configurations...`
2. Click `+` > `JUnit` to add a new Run Configuration for JUnit
3. Set the `Name:` field to `JUnit Config`
4. Set the `Test kind:` field to `All in package`
5. Set the `Search for tests:` field to `In whole project`
6. Set the `Working directory:` field to **your** project root directory (e.g. ~/workspace/esapi-java-legacy)

In order to Run ESAPI with Tests, you just need to select `Run` > `Run 'JUnit Config' with Coverage`

That's it!