at4dx icon indicating copy to clipboard operation
at4dx copied to clipboard

calling TestDataSupplement

Open dmchaplin opened this issue 4 years ago • 3 comments

Does the TestDataSupplementer.supplement method need to be called explicitly in each test method? I don't see where it is called anywhere in the framework.

So using the at4dx-sample example. Where does the upstream package call the TestDataSupplementer.supplement so that the MarketingFieldsForAccountsSupplementer can insert the "Hellow World!" slogan.

My exact issue is that we have a required field on Product2 and now the fflib tests are failing: fflib_SObjectUnitOfWorkTest.testDerivedUnitOfWork_CommitSuccess Fail System.DmlException: Insert failed. First exception on row 0; first error: REQUIRED_FIELD_MISSING, Required fields are missing: [Part_Number__c]: [Part_Number__c] 122

dmchaplin avatar Mar 18 '20 16:03 dmchaplin