Timeline for Code Coverage reports 0% when 100% of the class is covered with tests
Current License: CC BY-SA 3.0
17 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 15, 2016 at 17:41 | answer | added | Swisher Sweet | timeline score: 0 | |
Nov 14, 2016 at 22:24 | comment | added | Swisher Sweet | Thanks @PhilHawthorn, however it still shows "None" for code coverage after performing these steps. | |
Nov 14, 2016 at 20:12 | comment | added | Phil Hawthorn | Sometimes dev console doesn't update the dropdown if you have it open. In Dev Console, flip to the Tests tab and on the bottom right, you'll see a list of your "Overall Code Coverage". If you double click AbcBatch on there, does the class open showing the lines covered? | |
Nov 14, 2016 at 20:09 | history | tweeted | twitter.com/StackSalesforce/status/798256623974318084 | ||
Nov 14, 2016 at 20:00 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 186 characters in body
|
Nov 14, 2016 at 19:34 | comment | added | Daniel Ballinger |
If you add assertions that fail to the last part of you batch class do they fail as expected? E.g. at the end of the execute method add System.assert(!Test.isRunningTest(), 'Expected Boom!');
|
|
Nov 14, 2016 at 19:31 | answer | added | Daniel Ballinger | timeline score: 2 | |
Nov 14, 2016 at 19:18 | comment | added | Swisher Sweet | Added picture showing dropdown per Andrian's request. | |
Nov 14, 2016 at 19:15 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 298 characters in body
|
Nov 14, 2016 at 19:15 | comment | added | Adrian Larson♦ | Have you actually clicked the dropdown? Does it not show any of the classes or methods that should provide coverage? | |
Nov 14, 2016 at 19:14 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 298 characters in body
|
Nov 14, 2016 at 19:09 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 298 characters in body
|
Nov 14, 2016 at 19:03 | comment | added | Daniel Ballinger |
Are you using the "Always Run Asynchronously" option update the test menu in the developer console? If not, try checking it and running the test again. Or try running the tests from /ui/setup/apex/ApexTestQueuePage
|
|
Nov 14, 2016 at 19:00 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 19 characters in body
|
Nov 14, 2016 at 18:50 | history | edited | Swisher Sweet | CC BY-SA 3.0 |
added 136 characters in body
|
Nov 14, 2016 at 18:45 | comment | added | sfdcfox♦ | Did you check Setup > Apex > Apex Test Execution > Options... to make sure that "Store Only Aggregated Code Coverage" is unchecked? Did you clear the test data and then use run all tests? | |
Nov 14, 2016 at 18:40 | history | asked | Swisher Sweet | CC BY-SA 3.0 |