• ZetaV
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi,
My name is Ezequiel.


I'm currently the developer for a force.com project that we intent to release into the AppExchange market and run into a problem. In order to provide code coverage for packaging, the tests invoke custom controller's methods, which in turn query the database returning more than 500 objects, thus hitting governor limits
So, the tests don't have any query, they create their own isolated objects, but as soon as i call the controller's methods for coverage, for example, the controller queries the whole account list (that's what the controller's method is supposed to do) and it hits the dreaded 501 rows.

 

Is there any suggestion or help you could provide me with this ? I really don't want to change the production code if possible, i just need my tests to work bringing back only 500 rows.
Any help or assistance will be appreciated.
Thanks for your time,Ezequiel

 

  • June 11, 2010
  • Like
  • 0

Hi,
My name is Ezequiel.


I'm currently the developer for a force.com project that we intent to release into the AppExchange market and run into a problem. In order to provide code coverage for packaging, the tests invoke custom controller's methods, which in turn query the database returning more than 500 objects, thus hitting governor limits
So, the tests don't have any query, they create their own isolated objects, but as soon as i call the controller's methods for coverage, for example, the controller queries the whole account list (that's what the controller's method is supposed to do) and it hits the dreaded 501 rows.

 

Is there any suggestion or help you could provide me with this ? I really don't want to change the production code if possible, i just need my tests to work bringing back only 500 rows.
Any help or assistance will be appreciated.
Thanks for your time,Ezequiel

 

  • June 11, 2010
  • Like
  • 0