-
Notifications
You must be signed in to change notification settings - Fork 3
Procedure for creating the test datasets for versioning CI\CD
Isak Näslund edited this page Jun 19, 2025
·
4 revisions
This procedure is to generate datasets for base level checking of the versioning of objects, methods, adapters and datasets in the BHoM. What this procedure is doing is generating a serialised instance of each of them to be checked against the live code on Pull requests.
- Install the new beta version you need dataset for.
- Critical that this is done to ensure you have the exact versions of the assemblies, and that all are present, and no more than that
- Build the Revit API Mock DLLs to support Revit Versioning.
- Build Test_Toolkit
- Run the
#9_Generate Versioning Test Dataset.ghto generate the datasets in the versioning toolkit. Make sure to correctly set up the location of you GitHub folder for the versioning toolkit. Make sure you use Rhino 8 or later when you run this, as some methods/objects require to be generated from net core runtime- Check that ignored types are correct. This should generally be all enums as well as all objects/methods defined in Test_Toolkit
- Ensure failed DummyObejcts are ok to be skipped from versioning check
- Ensure failing from json is fine to be skipped for versioning checks
- Hit the toggle to generate the datasets
- Update the Versions used in the verification, putting the just released version as the default inclusion in the list, and adding the previous to the top of the list for checking of all versions.
- Make sure the data generated is valid
- Compile the
Verificationsolution in the.cifolder of the Versioning_Toolkit. The Dataset should now appear inC:\ProgramData\BHoM\Datasets\TestSets\Versioning - Run
.\TestRunner.exe Versioningfrom yourC:\ProgramData\BHoM\Assembliesfolder. - Nothing should need versioning yet. So if there is any error, manually fix the datset in your GitHub folder, recompile, and test until no error is returned.
- Compile the