Skip to content

Conversation

@IsakNaslundBh
Copy link
Contributor

@IsakNaslundBh IsakNaslundBh commented Sep 24, 2024

NOTE: Depends on

Issues addressed by this PR

Closes #486

Explicitly rule out any type or method from a Test_Toolkit assembly from being included in test sets.

Test files

Ensure no test_Toolkit method is part of the included methods/types

GenerateLegacyDataset.zip

Changelog

Additional comments

For now handled via a hard-coded list of assembly names. Happy for this to be changed to something smarter. Open for ideas @adecler @pawelbaran
@IsakNaslundBh IsakNaslundBh added the type:bug Error or unexpected behaviour label Sep 24, 2024
@IsakNaslundBh IsakNaslundBh self-assigned this Sep 24, 2024
@IsakNaslundBh
Copy link
Contributor Author

@adecler after doing this I had another thought. Could potentially make use of the IsPrototype method in the BHoM_Engine instead as that should filter out everything not part of the beta (if the beta is the last installer you ran). Might be worth a quick chat before I make that change, but might be a cleaner solution.

Copy link
Member

@pawelbaran pawelbaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense in general, just one thought for an alternative: filtering by assembly method that would take:

  • a collection of types/methods
  • a collection of strings correspondent to assembly names
  • bool ignore vs include

...could be helpful in other places as well. But just a thought, please feel free to ignore 😉

These method are to following BHoM Compliance and have either been added to handle Different versions of revit, or should be removed. Either way, these methods should not be part of the general versioning
…nput to allow for ruling out specific adapter types
@IsakNaslundBh IsakNaslundBh changed the base branch from main to develop April 2, 2025 09:25
Copy link
Member

@pawelbaran pawelbaran left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes make sense, happy to approve 👍

image

@IsakNaslundBh
Copy link
Contributor Author

@BHoMBot check null-handling
@BHoMBot check project-compliance
@BHoMBot check serialisation

@bhombot-ci
Copy link

bhombot-ci bot commented Apr 3, 2025

@IsakNaslundBh to confirm, the following actions are now queued:

  • check null-handling
  • check project-compliance
  • check serialisation

@IsakNaslundBh IsakNaslundBh merged commit e269e7d into develop Apr 3, 2025
3 checks passed
@IsakNaslundBh IsakNaslundBh deleted the Test_Toolkit-#486-RuleOutTestAssembliesFromVersioningTestSets branch April 3, 2025 11:06
@BHoMBot BHoMBot mentioned this pull request Jun 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:bug Error or unexpected behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix issue with Test_Toolkit methods and objects being part of versioning testset

3 participants