The Gameplay Test Recorder lets you record your gameplay and create a test from the recording.
How to use:
- Open a scene you want to record (i.e. Gameplay Test Recorder\Samples\Input Manager)
- Open Window->2GuyGames->Gameplay Test Recorder
- Make sure the appropriate input system is selected ("Legacy Input" for scenes in Samples\Input Manager)
- Press "Analyze Project"
- Press "Record"
- Enter a name and press "Create"
- Press "Start Recording" and wait (compilation takes longer when recording)
- Play the game and end play mode or press "Stop Recording"
- Go back and press "Refresh Unity Test Runner"
- Open Window->General->Test Runner
- Execute the test you just recorded
Tests will fail if the recorded final game state differs from the test's final game state.