diff --git a/src/tests/asyncTests.ts b/src/tests/asyncTests.ts index 650ec90c..abccab8f 100644 --- a/src/tests/asyncTests.ts +++ b/src/tests/asyncTests.ts @@ -359,7 +359,7 @@ export class AsyncTests { apexTestClassIdSet.add(item.ApexClass.Id); // Can only query the FullName field if a single record is returned, so manually build the field item.ApexClass.FullName = item.ApexClass.NamespacePrefix - ? `${item.ApexClass.NamespacePrefix}__${item.ApexClass.Name}` + ? `${item.ApexClass.NamespacePrefix}.${item.ApexClass.Name}` : item.ApexClass.Name; const diagnostic = diff --git a/src/tests/syncTests.ts b/src/tests/syncTests.ts index 005fd56b..c79c07e3 100644 --- a/src/tests/syncTests.ts +++ b/src/tests/syncTests.ts @@ -159,7 +159,7 @@ export class SyncTests { const apexTestClassIdSet = new Set(); apiTestResult.successes.forEach(item => { - const nms = item.namespace ? `${item.namespace}__` : ''; + const nms = item.namespace ? `${item.namespace}.` : ''; apexTestClassIdSet.add(item.id); testResults.push({ id: '', diff --git a/test/reporters/humanReporter.test.ts b/test/reporters/humanReporter.test.ts index df512455..b34bd11e 100644 --- a/test/reporters/humanReporter.test.ts +++ b/test/reporters/humanReporter.test.ts @@ -20,7 +20,7 @@ describe('Human Reporter Tests', () => { const result = reporter.format(testResults, false); expect(result).to.not.be.empty; expect(result).to.contain( - 'AnimalLocatorTest.testMissingAnimal Fail System.AssertException: Assertion Failed: Should not have found an animal: Expected: FooBar, Actual:' + 'AnimalLocatorTest.testMissingAnimal Fail System.AssertException: Assertion Failed: Should not have found an animal: Expected: FooBar, Actual:' ); expect(result).to.contain( 'Class.AnimalLocatorTest.testMissingAnimal: line 22, column 1' diff --git a/test/reporters/testResults.ts b/test/reporters/testResults.ts index d7182844..c4e9f9dd 100644 --- a/test/reporters/testResults.ts +++ b/test/reporters/testResults.ts @@ -260,11 +260,11 @@ export const testResults: TestResult = { id: '01p3t000003qSzaAAE', name: 'tt_UtilControllerTest', namespacePrefix: 'trlhdtips', - fullName: 'trlhdtips__tt_UtilControllerTest' + fullName: 'trlhdtips.tt_UtilControllerTest' }, runTime: 13, testTimestamp: '2020-11-09T18:02:51.000+0000', - fullName: 'trlhdtips__tt_UtilControllerTest.testGetCurrentUser' + fullName: 'trlhdtips.tt_UtilControllerTest.testGetCurrentUser' }, { id: '07M3t000003bQwXEAU', @@ -279,11 +279,11 @@ export const testResults: TestResult = { id: '01p3t000003qSzaAAE', name: 'tt_UtilControllerTest', namespacePrefix: 'trlhdtips', - fullName: 'trlhdtips__tt_UtilControllerTest' + fullName: 'trlhdtips.tt_UtilControllerTest' }, runTime: 179, testTimestamp: '2020-11-09T18:02:51.000+0000', - fullName: 'trlhdtips__tt_UtilControllerTest.testResetMyPassword' + fullName: 'trlhdtips.tt_UtilControllerTest.testResetMyPassword' }, { id: '07M3t000003bQwlEAE', @@ -357,11 +357,11 @@ export const testResults: TestResult = { id: '01p3t000000i4L1AAI', name: 'DashboardPalTest', namespacePrefix: 'Dashboard_Pal', - fullName: 'Dashboard_Pal__DashboardPalTest' + fullName: 'Dashboard_Pal.DashboardPalTest' }, runTime: 128, testTimestamp: '2020-11-09T18:02:51.000+0000', - fullName: 'Dashboard_Pal__DashboardPalTest.testDashboardPal' + fullName: 'Dashboard_Pal.DashboardPalTest.testDashboardPal' }, { id: '07M3t000003bQx0EAE', @@ -547,9 +547,9 @@ export const junitResult = ` - + - + @@ -558,7 +558,7 @@ export const junitResult = ` - + diff --git a/test/tests/testData.ts b/test/tests/testData.ts index 6b0132b2..8c85feb2 100644 --- a/test/tests/testData.ts +++ b/test/tests/testData.ts @@ -126,11 +126,11 @@ export const syncResult: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestApexClass', namespacePrefix: 't3st', - fullName: 't3st__TestApexClass' + fullName: 't3st.TestApexClass' }, runTime: 8, testTimestamp: '', - fullName: `t3st__TestApexClass.testMethod` + fullName: `t3st.TestApexClass.testMethod` } ] }; @@ -168,11 +168,11 @@ export const testResultData: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestLogger', namespacePrefix: 't3st', - fullName: 't3st__TestLogger' + fullName: 't3st.TestLogger' }, runTime: 8, testTimestamp: '3', - fullName: 't3st__TestLogger.testLoggerLog' + fullName: 't3st.TestLogger.testLoggerLog' } ] }; @@ -210,11 +210,11 @@ export const missingTimeTestData: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestLogger', namespacePrefix: 't3st', - fullName: 't3st__TestLogger' + fullName: 't3st.TestLogger' }, runTime: 0, testTimestamp: '3', - fullName: 't3st__TestLogger.testLoggerLog' + fullName: 't3st.TestLogger.testLoggerLog' } ] }; @@ -252,11 +252,11 @@ export const skippedTestData: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestLogger', namespacePrefix: 't3st', - fullName: 't3st__TestLogger' + fullName: 't3st.TestLogger' }, runTime: 0, testTimestamp: '3', - fullName: 't3st__TestLogger.testLoggerLog' + fullName: 't3st.TestLogger.testLoggerLog' } ] }; @@ -296,11 +296,11 @@ export const diagnosticResult: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestLogger', namespacePrefix: 't3st', - fullName: 't3st__TestLogger' + fullName: 't3st.TestLogger' }, runTime: 0, testTimestamp: '3', - fullName: 't3st__TestLogger.testLoggerLog', + fullName: 't3st.TestLogger.testLoggerLog', diagnostic: { className: 'LIFXControllerTest', columnNumber: 1, @@ -331,11 +331,11 @@ export const diagnosticFailure: TestResult = { id: '01pxx00000O6tXZQAZ', name: 'TestLogger', namespacePrefix: 't3st', - fullName: 't3st__TestLogger' + fullName: 't3st.TestLogger' }, runTime: 0, testTimestamp: '3', - fullName: 't3st__TestLogger.testLoggerLog', + fullName: 't3st.TestLogger.testLoggerLog', diagnostic: { className: 'LIFXControllerTest', compileProblem: '',