reports my test class "is not a test class"

Issue #1250 resolved
Todd Newman created an issue

I have turned on the debugging as instructed, log is below. First i ran by clicking the green arrow in the class (with coverage), then deployed the class (made a minor change), then ran again the same way.

I can run the tests in the apex test execution or the developer console. I restarted intellij and compiled all classes in the gui before starting this whole process.

Here's the top part of my class

@isTest(isparallel=false) private class TestAccountTerritoryUsersController {

@testSetup
public static void setupData()
{
    //insert account & territory association here 
    //since operation on setup object is not permitted after you have updated a non-setup object
    Account objAccount = TestDataAccount.getAccount('Tester');
    insert objAccount;

... ... }

=== Log ===

2019-03-12 08:07:34,733 [2167640] INFO - .ApexUnitTestRunProcessHandler - Running unit tests synchronously. 2019-03-12 08:07:34,733 [2167640] DEBUG - .ApexUnitTestRunProcessHandler - Starting the test run collecting coverage. 2019-03-12 08:07:34,736 [2167643] DEBUG - .ApexUnitTestRunProcessHandler - Posting the following to runTestsSynchronous: 2019-03-12 08:07:34,736 [2167643] DEBUG - .ApexUnitTestRunProcessHandler - {"tests":[],"skipCodeCoverage":false} 2019-03-12 08:07:35,182 [2168089] WARN - .ApexUnitTestRunProcessHandler - Unexpected status code 403 returned. 2019-03-12 08:07:35,186 [2168093] DEBUG - .ApexUnitTestRunProcessHandler - Finishing test run. 2019-03-12 08:07:35,327 [2168234] WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. com.illuminatedcloud.intellij.coverage.ApexCoverageSuite$1.run(ApexCoverageSuite.java:160) 2019-03-12 08:07:36,913 [2169820] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusDocumentCollateInfos when lines uncovered = 101. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:07:36,930 [2169837] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for IBTechinalAttributeCreationQueuable when lines uncovered = 92. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:07:36,936 [2169843] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusOrderDataReceiver when lines uncovered = 251. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:07:36,945 [2169852] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusOrderLineItems when lines uncovered = 146. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:07:36,954 [2169861] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for BatchContactCountryRegionMapping when lines uncovered = 29. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:07:36,961 [2169868] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TestDataAccount when lines uncovered = 27. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:08:56,610 [2249517] INFO - cloud.client.ForceComApiClient - Login successful for connection 'NuDev'. 2019-03-12 08:08:56,614 [2249521] INFO - y.ReflectionServiceFactoryBean - Creating Service {urn:partner.soap.sforce.com}PartnerService from class com.sforce.soap.partner.PartnerApi 2019-03-12 08:08:57,741 [2250648] WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. com.illuminatedcloud.intellij.builder.ForceComToolingApiDeployer$1$1.compute(ForceComToolingApiDeployer.java:250) 2019-03-12 08:09:12,138 [2265045] DEBUG - .ApexUnitTestRunProcessHandler - Running tests for [ NuDev: { TestAccountTerritoryUsersController } ]. 2019-03-12 08:09:12,281 [2265188] DEBUG - .ApexUnitTestRunProcessHandler - Starting test run. 2019-03-12 08:09:12,282 [2265189] DEBUG - .ApexUnitTestRunProcessHandler - Finding class declaration for TestAccountTerritoryUsersController. 2019-03-12 08:09:12,283 [2265190] WARN - .ApexUnitTestRunProcessHandler - TestAccountTerritoryUsersController is not a test class. 2019-03-12 08:09:12,283 [2265190] DEBUG - .ApexUnitTestRunProcessHandler - Creating a trace flag. 2019-03-12 08:09:12,970 [2265877] INFO - .ApexUnitTestRunProcessHandler - Running unit tests synchronously. 2019-03-12 08:09:12,970 [2265877] DEBUG - .ApexUnitTestRunProcessHandler - Starting the test run collecting coverage. 2019-03-12 08:09:12,970 [2265877] DEBUG - .ApexUnitTestRunProcessHandler - Posting the following to runTestsSynchronous: 2019-03-12 08:09:12,970 [2265877] DEBUG - .ApexUnitTestRunProcessHandler - {"tests":[],"skipCodeCoverage":false} 2019-03-12 08:09:13,322 [2266229] WARN - .ApexUnitTestRunProcessHandler - Unexpected status code 403 returned. 2019-03-12 08:09:13,322 [2266229] DEBUG - .ApexUnitTestRunProcessHandler - Finishing test run. 2019-03-12 08:09:13,346 [2266253] WARN - ess.util.ProgressIndicatorBase - This progress indicator is indeterminate, this may lead to visual inconsistency. Please call setIndeterminate(false) before you start progress. com.illuminatedcloud.intellij.coverage.ApexCoverageSuite$1.run(ApexCoverageSuite.java:160) 2019-03-12 08:09:14,671 [2267578] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UtilsObject when lines uncovered = 101. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,673 [2267580] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_ObjectsImpl when lines uncovered = 48. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,681 [2267588] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UserTerritory2Associations when lines uncovered = 22. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,684 [2267591] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusDocumentCollateInfos when lines uncovered = 101. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,693 [2267600] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for IBTechinalAttributeCreationQueuable when lines uncovered = 92. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,697 [2267604] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_OrchestrateQueued when lines uncovered = 24. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,700 [2267607] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusOrderDataReceiver when lines uncovered = 251. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,704 [2267611] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for AccountTerritoryUsersController when lines uncovered = 24. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,705 [2267612] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_InstalledProducts when lines uncovered = 76. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,712 [2267619] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_BatchImpl when lines uncovered = 119. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,718 [2267625] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UsersSelector when lines uncovered = 53. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,722 [2267629] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ObjectTerritory2AssociationsSelector when lines uncovered = 37. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,726 [2267633] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_ComposedBase when lines uncovered = 81. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,737 [2267644] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ApttusOrderLineItems when lines uncovered = 146. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,745 [2267652] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TerritoriesSelector when lines uncovered = 59. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,749 [2267656] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPSBatches when lines uncovered = 66. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,753 [2267660] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_Config when lines uncovered = 82. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,759 [2267666] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for Accounts when lines uncovered = 30. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,763 [2267670] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_OrchestrationImpl when lines uncovered = 63. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,767 [2267674] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UserTerritory2AssociationTrigger when lines uncovered = 1. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,779 [2267686] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for AccountTrigger when lines uncovered = 1. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,784 [2267691] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for BatchContactCountryRegionMapping when lines uncovered = 29. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,787 [2267694] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_SObjectDescribe when lines uncovered = 150. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,796 [2267703] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_QueryFactory when lines uncovered = 297. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,832 [2267739] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_SecurityUtils when lines uncovered = 109. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,844 [2267751] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_LogEvent when lines uncovered = 96. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,853 [2267760] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_SObjectSelector when lines uncovered = 107. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,858 [2267765] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for ilib_SObjectDomain when lines uncovered = 386. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,899 [2267806] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TestDataAccount when lines uncovered = 27. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,900 [2267807] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UtilsCollection when lines uncovered = 97. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,901 [2267808] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UtilsSettings when lines uncovered = 31. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,904 [2267811] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_ObjectSupport when lines uncovered = 75. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,906 [2267813] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TerritoriesService when lines uncovered = 2. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,907 [2267814] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for UserTerritory2AssociationSelector when lines uncovered = 62. Adding all executable lines that were not reported as covered as uncovered. 2019-03-12 08:09:14,907 [2267814] WARN - lij.coverage.ApexCoverageSuite - No uncovered line details found in coverage response for TAPS_Orchestrator when lines uncovered = 105. Adding all executable lines that were not reported as covered as uncovered.

Comments (5)

  1. Scott Wells repo owner

    Hi, Todd. Can you see if this same test class is present in the offline symbol table as well? If so, please regenerate the OST and it should omit all local classes. There's a bug here that I need to fix where IC is resolving the class in the OST instead of the local one, and the OST version doesn't include the test annotations.

    If that doesn't solve it, please let me know.

  2. Todd Newman reporter

    Yes, that solved the problem. I looked at the offline symbol table before and found my class in there without the annotations. After rebuild, the class isn't in there anymore and the tests execute. Thanks!

  3. Scott Wells repo owner

    Glad that did it for you. I'll get the underlying bug fixed shortly so you don't have to update your OST to have this work.

  4. Log in to comment