Skip to content

Instantly share code, notes, and snippets.

@keturn
Last active May 23, 2022 19:32
Show Gist options
  • Save keturn/400552eb2bb91406f24f78dcb4017f00 to your computer and use it in GitHub Desktop.
Save keturn/400552eb2bb91406f24f78dcb4017f00 to your computer and use it in GitHub Desktop.
Terasology Test Dependency Diagram

Main Implementation Dependencies

flowchart TD

modA(Module A)
modB(Module B)
engine-tests
engine

modA-->engine
modB-->engine
engine-tests-->engine
Loading

Main and Test Sources

flowchart TD

subgraph ModuleA
direction RL
modA-test(Module A:test):::test --> modA[Module A:main]
end

subgraph ModuleB
direction RL
modB-test(Module B:test):::test --> modB[Module B:main]
end

subgraph EngineTests
direction RL
engine-tests-test(engine-tests:test):::test --> engine-tests[engine-tests:main]
end

subgraph Engine
direction RL
engine-test(engine:test):::test --> engine
end

engine-tests ---> engine
modA--->engine
modB--->engine

classDef test fill:#8FA
Loading

Main and Test Dependencies

flowchart TD

subgraph ModuleA
direction RL
modA-test(Module A:test):::test --> modA[Module A:main]
end

subgraph ModuleB
direction RL
modB-test(Module B:test):::test --> modB[Module B:main]
end

subgraph EngineTests
direction RL
engine-tests-test(engine-tests:test):::test --> engine-tests[engine-tests:main]
end

subgraph Engine
direction RL
engine-test(engine:test):::test --> engine
end

engine-test -.-> EngineTests
modA-test -.-> EngineTests
modB-test -.-> EngineTests

EngineTests --> Engine
ModuleA---->Engine
ModuleB---->Engine

classDef test fill:#8FA
Loading

or rendered without subgraph groups

flowchart TD

modA-test(Module A:test):::test --> modA[Module A:main]
modB-test(Module B:test):::test --> modB[Module B:main]

engine-test(engine:test):::test --> engine
engine-tests-test(engine-tests:test):::test --> engine-tests[engine-tests:main]

engine-test -.-> engine-tests
modA-test -.-> engine-tests
modB-test -.-> engine-tests

engine-tests --> engine
modA ----> engine
modB ----> engine

classDef test fill:#8FA
Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment