- edited description
Can not run new test methods created from an existing one
Case: Fully working test class with existing test methods, everything works fine.
Lets say i have test methods:
- firstStep();
- secondStep();
- thirdStep();
Then i decide i need to split a method in two, lets say I split the secondStep() method, it doesnt matter which one it is. I highlight secondStep(); duplicate the code, change the name of frist secondStep(); to secondStepFirstHalf(); and the second secondStep(); to the secondStepSecondHalf();
I have these methods now:
- firstStep();
- secondStepFirstHalf();
- secondStepSecondHalf();
- thirdStep();
When i run the whole test class, it shows the list of test methods that existed before the change, and after completed test run the list looks like this:
- ✓ firstStep();
- Ø secondStep();
- ✓ thirdStep();
If I run any of the new methods I get the response as seen in this image.
In Salesforce developer console I can run tests successfully.
Comments (4)
-
reporter -
repo owner Marko, can you enable debug logging for unit testing as documented here:
http://www.illuminatedcloud.com/support/debuglogging
the reproduce the issue and provide the resulting
idea.log
using Help>Show Log in Explorer/Finder/Files? Feel free to email the log tosupport@illuminatedcloud.com
if it contains sensitive/private info. -
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
-
repo owner - changed component to Apex Unit Testing
- Log in to comment