iTwin / imodel-transformer

API for exporting an iModel's parts and also importing them into another iModel
MIT License
3 stars 2 forks source link

Change the BranchProvenanceInitializer tests so that they don't create multiple iModels and instead reuse the same one. #129

Closed nick4598 closed 7 months ago

nick4598 commented 7 months ago

before: compare imodels from BranchProvenanceInitializer and traditional branch init ✔ branch provenance init with relSourceHasFedGuid,relTargetHasFedGuid,createFedGuidsForMaster (1789ms) ✔ branch provenance init with relSourceHasFedGuid,relTargetHasFedGuid (2519ms) ✔ branch provenance init with relSourceHasFedGuid,createFedGuidsForMaster (1530ms) ✔ branch provenance init with relSourceHasFedGuid (2535ms) ✔ branch provenance init with relTargetHasFedGuid,createFedGuidsForMaster (1598ms) ✔ branch provenance init with relTargetHasFedGuid (2498ms) ✔ branch provenance init with createFedGuidsForMaster (1559ms) ✔ branch provenance init with (2598ms)

after: compare imodels from BranchProvenanceInitializer and traditional branch init ✔ branch provenance init with branchProvenance,createFedGuidsForMaster (1238ms) ✔ branch provenance init with branchProvenance (165ms) ✔ branch provenance init with classicTransformerProvenance,createFedGuidsForMaster (324ms) ✔ branch provenance init with classicTransformerProvenance (222ms) ✔ should have identityTransformation between branchProvenance and classic transformer provenance when createFedGuidsForMaster is false (1464ms)

There are less test cases, but within each test case all permutations of sourceHasFedguid, targetHasFedGuid are still tested.