Method-level Apex unit test execution
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 (15)
-
-
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.
-
reporter Issue
#171was marked as a duplicate of this issue. -
Would be nice to have this feature.
-
Account Deactivated Hi Scott. Any progress on this enhancement?
-
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.
-
Account Deactivated Thanks Scott. Always appreciate the amount of effort you're putting into this plugin.
-
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).
-
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.
-
Account Deactivated Amazing! I can't tell you how much I appreciate all of your work.
-
Account Deactivated Scott,
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.
-
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.
-
reporter - changed status to resolved
Delivered in 1.6.7.5. Note that context configurations are available only on IDEA 13+. Method-level test runs are available on all versions, though.
-
reporter - changed component to Apex Unit Testing
-
reporter - removed version
Removing version: Unassigned (automated comment)
- Log in to comment
It would be great if this could be done "transiently", i.e. without leaving a run configuration behind afterwards.