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

Performance regression test cases #17

Closed MichaelBelousov closed 10 months ago

MichaelBelousov commented 1 year ago

We should probably run each case sequentially on the current iModel from the battery of iModels to test:

const testCases = {
  "identity transform": require("./identity-transform"); 
};

// need to not download iModels that we don't intend to test for local experiments 
for (const iModel of iModelsInProject({ filter: m => m.tShirtsize === 'm' } )) {
  describe(`Transforms of ${iModel.name}`, () => {
    for (const [testCaseName, testCaseRun] of Object.entries(testCases) {
      it(testCaseFunction.name, function () {
        //if (!process.env.CI && iModel.tShirtsize !== 'm') this.skip();
        testCaseRun(iModel);
      });
    }
  });
}

Sorted by priority:

MichaelBelousov commented 10 months ago

closing as close enough