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
Not sure if this is a bug report, feature request, or request for documentation, but I'm having issues with unit tests and ursina.
I'd like to write some tests to test my physics code for a 2d game I'm working on. My current iteration process makes it easy to introduce physics bugs that I don't notice right away, and I'd like to have tests to ensure later changes don't break things.
I'm using pytest, and I'm completely stumped on getting tests to work. I don't have any errors. My current attempt just tries to load and run the game without even testing anything. I have a main() function which just does my game setup and runs app.run(). I call main() in the test. The game appears, but doesn't do anything and doesn't respond to input. The update() function doesn't appear to be called unless I manually call it. I'm importing everything from ursina (from ursina import *) as the documentation recommends.
Initially I thought it might be a namespace issue of some kind, but I'm doing the same imports in my actual game as I am in my tests. I don't see any unit tests examples in the code or documentation that I could use as guidelines either.
The text was updated successfully, but these errors were encountered:
Not sure if this is a bug report, feature request, or request for documentation, but I'm having issues with unit tests and ursina.
I'd like to write some tests to test my physics code for a 2d game I'm working on. My current iteration process makes it easy to introduce physics bugs that I don't notice right away, and I'd like to have tests to ensure later changes don't break things.
I'm using pytest, and I'm completely stumped on getting tests to work. I don't have any errors. My current attempt just tries to load and run the game without even testing anything. I have a main() function which just does my game setup and runs app.run(). I call main() in the test. The game appears, but doesn't do anything and doesn't respond to input. The update() function doesn't appear to be called unless I manually call it. I'm importing everything from ursina (
from ursina import *
) as the documentation recommends.Initially I thought it might be a namespace issue of some kind, but I'm doing the same imports in my actual game as I am in my tests. I don't see any unit tests examples in the code or documentation that I could use as guidelines either.
The text was updated successfully, but these errors were encountered: