Unit Testing and Code Coverage
Navigate between product and test code
Easily navigate between product Apex classes and their unit test class counterparts using the IDE's Related Symbol navigation.
Create test configurations
Create test run configurations to specify exactly which subset of Apex unit test classes and methods should be included and what granularity of log information should be captured during execution. These configurations can even be shared with your team.
Illuminated Cloud can even maintain a test run configuration for all test classes and methods in the project.
Apex Test Suites
Illuminated Cloud supports execution of Apex Test Suite metadata. Simply right-click on any .testSuite file and Illuminated Cloud will offer to create or run a unit test run configuration based on the contents of the test suite.
Run tests and review results
Execute your test configurations and review the results in the IDE's test runner. Rerun failed test methods after fixing them with a single button. Hyperlinked stack traces and trace logs are displayed for each test method.
You can quickly create test run configurations from context based on the selected Apex test class or method using the context menu, gutter action, or CTRL+SHIFT+F10 (Windows/Linux) or CTRL+SHIFT+R (Mac).
Analyze code coverage
After executing unit tests, review Apex code coverage metrics at the line, class, and aggregate levels. Covered and uncovered lines are annotated clearly in the editor for production classes and triggers. Class-level coverage is displayed in the Project and Coverage views. Aggregate coverage is displayed in the Project view for applicable source folders.
Coverage-by-test information, i.e., for a given line of covered non-test code, showing which test methods drove coverage of that line, is available by clicking in the gutter beside the desired line.