-
Notifications
You must be signed in to change notification settings - Fork 16
Annotation-based dependency definition seems quirky #72
Copy link
Copy link
Open
Labels
Category: Test/QARequests, Issues and Changes targeting tests and quality assuranceRequests, Issues and Changes targeting tests and quality assuranceStatus: Needs DiscussionRequires help discussing a reported issue or provided PRRequires help discussing a reported issue or provided PRStatus: Needs InvestigationRequires to be checked for feasibility, reproducability, etc.Requires to be checked for feasibility, reproducability, etc.Status: Needs TestingRequires to be tested in-gameRequires to be tested in-gameTopic: ArchitectureRequests, Issues and Changes related to software architecture, programming patterns, etc.Requests, Issues and Changes related to software architecture, programming patterns, etc.
Metadata
Metadata
Assignees
Labels
Category: Test/QARequests, Issues and Changes targeting tests and quality assuranceRequests, Issues and Changes targeting tests and quality assuranceStatus: Needs DiscussionRequires help discussing a reported issue or provided PRRequires help discussing a reported issue or provided PRStatus: Needs InvestigationRequires to be checked for feasibility, reproducability, etc.Requires to be checked for feasibility, reproducability, etc.Status: Needs TestingRequires to be tested in-gameRequires to be tested in-gameTopic: ArchitectureRequests, Issues and Changes related to software architecture, programming patterns, etc.Requests, Issues and Changes related to software architecture, programming patterns, etc.
Two issues noted on Discord just recently in #architecture relating to something like
@Dependencies({"FlexibleMovement", "CoreAssets"})FlexibleMovementTestingEnvironmentin https://github.com/Terasology/FlexibleMovement) - the annotation doesn't get inherited by default@Dependenciesstatement, despite the FM module itself having a dependency tree including CoreAssets the dirt and water block families were not found if CoreAssets wasn't explicitly included in the listI also sort of wonder why we have to explicitly call out the parent module as a dependency? 🤔 And for that sake - if the parent module's dependencies were to be respected and just loaded normally out of
module.txtwhy would@Dependencieseven exist? Is there a case where you'd have a test in a module depend on a different module the test-owning module itself doesn't depend on? Or is it more that we'd want the ability to only activate a subset of the dependency tree? That seems like it would lead to tests differing more than needed from the mainline code.Terasology-Archived/FlexibleMovement#3 was used for some of the testing