Use Mutation Testing to Stop Developers from Cheating on Apex Tests - Ideas - Salesforce Trailblazer Community

All Ideas

Idea Details

Post an Idea
140  Points
Under Point Threshold
Idea hasn't met the 2,500-point review threshold. Give it an upvote or downvote.

Use Mutation Testing to Stop Developers from Cheating on Apex Tests

Apex

As a professional software developer, I find it disappointed, disturbing, and even disgusting what passes for "tests" just so Apex code can meet deployment requirements without asking support to lower the limits.

In fact, within the past 8 years of working on the SFDC platform (on and off), I've rarely seen a useful test I didn't actually write.  And so when I go onto a project and am asked to fix a defect or create an enhancement, I am working in an environment that can not safely be refactored and requires excessive end-to-end testing to prevent regressions.

Also, I receive pressure to write such rubbish tests which, I feel, is at best unethical and may even be criminally fraudulent.

I would like for SFDC to introduce "Mutation Testing" and limit the tolerance for mutatibility to something significantly less than 100% (e.g. 20%) in order to allow deployment.

 

Merge Idea · Flag

  • 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.