This document will help you set up IntelliJ for running an assignment's tests
(making it run all the tests that mvn test -Dproj=X
would run).
- Open up Run/Debug Configurations with Run > Edit Configurations.
- Click the + button in the top left to create a new configuration, and choose JUnit from the dropdown. This should get you the following unnamed configuration:
- Fill in the fields as listed below, then press OK.
- Name: Proj2 tests (or whichever assignment you're setting up)
- Test kind: Category
- Category: edu.berkeley.cs186.database.categories.Proj2Tests (or the category corresponding to the assignment you're setting up)
- Search for tests: In whole project
- You should now see Project 2 tests in the dropdown in the top right. You can run/debug this configuration to run all the Project 2 tests.