3

Pretty straight forward question: is it possible to run tests without using the Developer Console? I've reached my 5,000 max API Calls and I don't want to wait till' tomorrow to be able to keep testing my classes.

The following error appears when I try to, for example, save a file through Eclipse:

enter image description here

Best regards.

2
  • Sorry, but how running tests and counting API Calls are connected? Is SFDC count every test run as API Call? Feb 19, 2014 at 13:47
  • @Chiz From my own experience, simple things like, for example, using Eclipse to save a file, uses api calls. My major part come from running tests since I didn't have this problem up until now (when I started developing test classes).
    – Rui Rocha
    Feb 19, 2014 at 14:50

1 Answer 1

3

Your question:

Is it possible to run tests without using the Developer Console? Yes, it is.

  1. You could use the metadata API (or any tool which use it Eclipse, Sublime, etc).
  2. You could use the setup interface (Setup > Develop > Apex Classes) button:

enter image description here

  1. You could use the developer console
  2. Or you could build your own classes to run the test using ApexTestQueueItem

here the official doc of running tests

Api calls

However, I think that all those options use api call (I'm not sure about UI button). So I don't think that can achieve this having consumed the api calls.

6
  • First option I've already tried, it gives me the Total Limit Exceeded error, not only with Run Tests but Saving a file aswell (this api calls being maxed out doesn't let me use Eclipse anymore). The second onde I can run it, but no % is shown anywhere. Am I looking at the wrong place? Thanks for the detailed answer.
    – Rui Rocha
    Feb 19, 2014 at 14:06
  • As far as I know the only "standard" place to see the % coverage is the developer console. Eclipse, Sublime, others need api calls. Feb 19, 2014 at 14:16
  • @RuiRocha, can you open a class in your org and discover % there? Feb 19, 2014 at 14:18
  • 2
    I would contact support and try to get them to increase the limit for you. They generally only will do this temporarily, so you need to make your case to them. Feb 19, 2014 at 14:43
  • @Chiz No, that's the problem, even if I do "Run All Tests" I wanted to do this at least for a single test class, since otherwise I don't know in which one is the coverage missing (I have like 10 test class to check atm). I can only do Develop > Apex Classes > Estimate your organization's code coverage
    – Rui Rocha
    Feb 19, 2014 at 14:46

You must log in to answer this question.

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