Provide Enhanced Apex Testing Functionality - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
This idea has been delivered and can no longer be voted or commented on. If you’d like to add to this conversation, please post a new idea.
3,120  Points voting closed
Delivered in Summer 15
Idea is generally available.

Provide Enhanced Apex Testing Functionality

Apex

Writing test cases is both tedious and necessary. Help developers out by developing a framework of testing services that we often are forced to write over and over and over again. Similar to JUnit, provide the ability to create and run individual test suites instead of all tests. Implement a setUp() method that initializes common object and a tearDown() method to cleanup those objects after each test. Add the functionality to create test fixtures. A test fixture is useful if you have two or more tests for a common set of objects. Using a test fixture avoids duplicating the test code necessary to initialize and cleanup common objects for each test.

· Flag

Latest Comment from Salesforce

  • Josh Kaplan - 3 years ago

    As of Summer release, you can run individual test methods. You can also set data up for multiple methods with @testSetup.
  • Upvotes
  • Downvotes

Ideas

Apps

from AppExchange

Questions

Help us to keep IdeaExchange clean by pointing out overlapping ideas. We'll investigate your suggestion and merge the ideas if it makes sense.



 

 

Thanks for your merge suggestion. We will review it shortly and merge the ideas if applicable.

Salesforce takes abuse situations very seriously. Examples of abuse include but are not limited to posting of offensive language or fraudulent statements. To help us process your request as quickly as possible, please fill out the form below describing the situation. For privacy and security reasons, the final outcome of an abuse case may not be revealed to the person who reported it.


 

Thank you for your feedback. We take abuse seriously and will investigate this issue and take appropriate action.