nicholas-maltbie / OpenKCC

Open Source Kinematic Character Controller for Unity
http://nickmaltbie.com/OpenKCC/
MIT License
642 stars 60 forks source link

Adjusting Flaky PlayMode tests #202

Closed nicholas-maltbie closed 1 year ago

nicholas-maltbie commented 1 year ago

Description

Fixing up some flaky conditions for playmode tests.

Specifically tests:

The tests were getting stuck in the "LandingState" causing the players to never enter idle state. This was caused by this transition being driven by an animation. However, these animations were baked for the test and not using the real animations so it would only end if the frame of the play mode test happened to end before the animation reset. This was likely but not garneted so I added a backup transition that will force the state change after 1 second of landing.

Additionally, I cleaned up some of the other extreme setting and added some documentation to the tests.

github-actions[bot] commented 1 year ago

Test Coverage Results for : Line Coverage: 98.8% Link to run results: https://github.com/nicholas-maltbie/OpenKCC/actions/runs/5011952448