2

We're currently having a minor problem with the speed at which test classes run. We've got quite a lot of tests, around 300+ run during deployments. However, this can take anywhere between 30 minutes and an hour to deploy which seems quite extensive. Particularly if something was to fail for some unforeseen reason. One thing I have picked up on is that the API Version of our classes and test classes go as far back as Version 23.0.

What I'm interested to know is:

  • Is this deployment time normal for so many test classes?
  • Could API versions of classes and test classes affect deployment times
  • Can Meta Data be deployed into production (currently using Sublime Text 3 + Mavensmate) to change the API version
  • Would deploying Meta Data potentially break anything?

1 Answer 1

4
  • Is this deployment time normal for so many test classes?

It does seem high for 300 tests but you would need to look at how long it took each test to run. You may have some tests that are taking a long time to run.

  • Could API versions of classes and test classes affect deployment times

Yes, if a test is using API 23 or less then that test will see all data in the org which will cause your SOQL queries to return more records than you expected.

  • Can Meta Data be deployed into production (currently using Sublime Text 3 + Mavensmate) to change the API version

Yes

  • Would deploying Meta Data potentially break anything?

Yes, tests can fail and logic may not work as expected.

1
  • Interesting. Sounds like this could be a bit of a nightmare to resolve although it's not desperate as of yet. Good to know a fix option is available though.
    – Dan Jones
    Commented Oct 5, 2015 at 11:54

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .