Last active
November 21, 2016 18:18
-
-
Save britishboyindc/b86ce34b00cc212f8be97dee2a784c59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| List<ApexClass> ac = [select Id, name, body from ApexClass where NamespacePrefix = NULL ]; | |
| integer i = 0; | |
| for (ApexClass actemp: ac) { | |
| if (actemp.body.contains( '@isTest') ) { | |
| i++; | |
| } | |
| } | |
| system.debug(i + ' classes are Tests'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment