Method-level Apex unit test execution

Issue #85 resolved
Scott Wells repo owner created an issue

Right now unit test selection/execution is at the Apex class-level. The Tooling REST API now supports method-level execution. This would be a nice enhancements in particular for rerun-failed-tests.

Comments (13)

  1. Chris Peterson

    It would be great if this could be done "transiently", i.e. without leaving a run configuration behind afterwards.

  2. Scott Wells reporter

    Agreed. What I'd like to do is add the ability to have ad hoc run configurations based on contextual selection that aren't permanent but could be saved if they're valuable enough.

  3. Scott Wells reporter

    No progress at present, but this is coming up pretty often now. I might slot it in earlier than originally expected based on that interest.

  4. Scott Wells reporter

    FYI, I went ahead and got started on this today. The first task of migrating test queuing from using the SOAP API to using the REST API (method-level execution is only possible through the latter) is complete. Next I'll add method-level selection in the test config editor and method-level execution of failed tests. Once those are done I'll go ahead and add the ability to create new test configs from context, e.g., the current selected class(es) or method(s).

  5. Scott Wells reporter

    And now I have this working for test execution and failed test method re-execution. Interesting...that went much quicker than I'd have expected. I definitely want to test this a bit more, so I won't likely release this until Monday, but it should be coming quite soon.

  6. Luke Freeland


    Matt was giving a demo of your tool to the team Friday and it's amazing. It's likely you'll have a few more paying customers pretty soon. Going to download the trial soon. Looking forward to trying it out.

  7. Scott Wells reporter

    Glad to hear, Luke! Thanks, Matt, for helping to spread the word!

    One more update on this particular issue for those of you who are watching it. It's feature complete now including method-level support and context configurations for Apex unit tests. As I mentioned yesterday, I plan to perform another test run on it to make sure I haven't messed anything up, and then I'll release it. Look for it on Monday or Tuesday.

  8. Scott Wells reporter

    Delivered in Note that context configurations are available only on IDEA 13+. Method-level test runs are available on all versions, though.

  9. Log in to comment