You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tutorials/PlottingGraphsWithMatplotlibAndUnrealEnginePython.md
+60Lines changed: 60 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,3 +125,63 @@ class PlotComponent:
125
125
### Playing it
126
126
127
127
### Writing a simple unit test
128
+
129
+
Sorry, i will never stop telling you how important unit tests are, so, even if we have deloped a really simple script, we will write a unit test too :)
130
+
131
+
We need to test that when a 'ComponentOverlap' event is triggered on a cube, the right counter is incremented:
the 'sanbox' execution, ensures a clean python subinterpeter is initialized, instead of clobberign the main one.
186
+
187
+
Check how the test setUp and tearDown methods, ensure your world is cleaned up at the end (using the transaction api of unreal engine: https://github.com/20tab/UnrealEnginePython/blob/master/docs/Transactions_API.md)
0 commit comments