Apex unit test execution

Issue #29 resolved
Scott Wells repo owner created an issue

Add support for Apex unit test execution through Illuminated Cloud. Provide status reporting while unit tests are executing. Show unit test results similar to how IDEA shows JUnit results with full navigation through the reported stack traces. Show code coverage overlays in the same manner that IDEA can show code coverage for Java.

It should be possible to select the unit test execution scope as:

  • Project
  • Module + dependencies
  • Module
  • Current file
  • Single test method - the API may not support this in which case we may need to mutate the test class temporarily to remove @IsTest/testMethod from all other methods in the same class
  • Failed tests from selected run

Comments (4)

  1. Scott Wells reporter

    I've just released the first version of this feature with support for unit test run configuration and execution, re-running of failed tests, hyperlinked navigation through Apex stack traces, and easy navigation between corresponding product and test classes. In subsequent updates I plan to add method-level test execution support, context menu actions for creation of unit test run configurations based on the selected method/class/module, and code coverage integration.

  2. Scott Wells reporter

    I've opened enhancements for the future work (method-level execution and context-based run configurations) so I'm resolving this one.

  3. Log in to comment