dougnoel/sentinel

Instruction for Importing into IntelliJ

Opened this issue · 1 comments

  1. Install IntelliJ Community Version.
  2. Open Project -> Point to the folder the project is in.
  3. When prompted in the lower right, install the Cucumber plugin.
  4. Restart your IDE.
  5. You may do shared indexes if you like. Note that it is a paid feature after 30 days.
  6. Go to the Build menu select Build Project
  7. When prompted in the lower right select an SDK.
  8. In the SDK dropdown, select a version of Java supported by Sentinel (see the version information at the top of the Sentinel Readme.)
  9. Click Apply
  10. Click Ok
  11. Build-> Build Project
  12. In the bottom left there's a Build icon with Build. Clicking it shows you what happened in the build.
  13. In the Project sidebar on the left, Open sentinel/src/test/java/tests.
  14. Right-click on SentinelTests and select Run from the drop-down. All tests should execute and pass.

Editing Configs

  1. Run -> Run configurations
  2. In the Build and run section, there is a textbox with -ea in it. Add commandline arguments in that box AFTER the '-ea '

Running with code coverage

  1. Build -> Build Configurations
  2. Remove tests from the add section
  3. Remove "tests" from the files to add section.
  4. Select Run with Code coverage (makes sure you run all tests)

Bring Up Maven Window
View -> Tool Windows -> Maven

Prefer local version of sentinel over Maven Central

  1. Download Sentinel and open it up as a project in IntelliJ.
  2. Go back to sentinel.example project
  3. Select sentinel.example in the Maven window (View->Tool Windows->Maven)
  4. Project Structure->Project Settings->Module
  5. Click the + sign (Add) in the first column and select Import Module from the dropdown
  6. Select the location of the local sentinel project on your hard drive.
  7. Click Ok
  8. Select the Import module from external sources Radio Button.
  9. Select Maven in the list.
  10. Press the Create button.
  11. Press Ok
  12. Click the Dependencies Tab
  13. Click + (Add) and select Module Dependency from the dropdown
  14. Click the OK button.
  15. Select the Checkbox next to Sentinel in the Export column.
  16. Click Apply button
  17. Click Ok in Project Structure
  18. In the Maven Window (View->Tool Windows->Maven), click the Reload all Maven Projects button (looks like a browser refresh button) in the upper-left hand corner of the Maven Window.