Deployment - Run Specified Tests

Issue #320 resolved
Mike Gedelman created an issue

Hello,

I have an org with a large amount of tests, and I prefer to deploy using the "Run Specified Tests" option. I don't see where this is currently an option.

Thanks,

Mike

Comments (11)

  1. Scott Wells repo owner

    Mike, you can set up Apex unit test run configurations with any subset of test classes and/or methods that you'd like. You do need to have the classes present in the local file system as it uses local files to determine what's available to run.

    There are two ways to create a new test configuration: 1) under Run>Edit Configurations followed by +>Apex Unit Tests; 2) by right-clicking on a test class or method to run just that selection. The latter already runs the specified tests. In the former you can use the checkbox tree to select what you want to run.

    Please let me know if this doesn't provide what you need. I'm going to resolve this issue for now assuming that it will, but feel free to reopen it with details on what's missing if it doesn't.

  2. Scott Wells repo owner

    Ugh...I just noticed the most important word here..."deploy". You're asking for the ability to say that a deployment process should run tests, not for ad hoc test runs. I won't resolve this as it's a proper enhancement. Sorry for misunderstanding it on my first pass!

  3. Mike Gedelman reporter

    Np, thanks for the quick reply. None of the other IDEs feature this either, so it would just be really nice to have. Only alternative at the moment is using Ant.

    Thanks!

  4. Mario Burdman

    This is a huge feature for my day to day work scenario. Would be awesome if when you do this, you can select to include or not managed packages tests in a easy way. Also, since you will be working on the Deployment UI, maybe you can add Validate capabilities!

    Thanks!

  5. Log in to comment