All Questions
Tagged with test-setup cpulimit
3
questions
4
votes
1
answer
724
views
Do governor limits like Apex CPU time limit apply to @testSetup methods?
I have a test method written by a third party that occasionally results in Apex CPU time limit errors. The part of the method that includes setting up a semi-large amount of data on multiple objects (...
0
votes
0
answers
23
views
loading bulk data for testing gives : System.LimitException: Apex CPU time limit exceeded
I am trying to test my batch process by loading bulk data:
I am creating the data as follows:
List<Account> accounts = new List<Account>();
List<Account_Plan__c> ...
2
votes
0
answers
319
views
Unit Test data setup is hitting Apex CPU time limit
I have written a set of methods in a test class that can be called to create and insert relational test data. I am using Test.StartTest() and Test.StopTest() to keep the operations for the test in ...