branchrust_reboot/main/automated_testingcancel
119 Commits over 122 Days - 0.04cph!
More turret tests fixes, added debug convar to suppress randomness in the tick invokes
Reworked PlayerMountedToVehicle_PlayerTargeted
Autoturret tests cleanup and fixes
Wait for Application.isLoading to be false before starting test on cold boot and batch mode
SendNetworkUpdate early returns when Rust.Application.isLoading is true
Added +autotest command line arguments for server batchmode test runs
Fix TestCooking item leaks
Any errors logged during a test now fail the test, can be bypassed with the AllowsLoggedErrors attribute
Also try catch exceptions in WaitUntilWithTimeout and AssertTrueForDuraton and fail the test
Moved up if DEBUG in TestRunner.Pipeline, TestRunnerWindow, TestMemoryCell and TestSolarPanel
Removed NUnit refs in TestPlayerBoat and RHIB
Quit the editor once the test pipeline run is done (the method is async so we cant use -quit)
Fixed local client player being killed by the tests TearDown (entity snapshot clearing)
Fixed passed/failed filter text width
Throw if the scoped convar doesn't have a SetOveride (methods)
Fixed scoped convars being case sensitive
Failing to find a convar now throws, will fail the test if throwing during SetUp/TearDown or in the test body
Optimised test runner window OnGUI stack
Editor test runs are faster
Removed hull_corner prefabs, unused
Fix cooking tests failing
Improve the existing ones, add a note to expand in the future
Added category selection to the test runner window
Fixed TestConveyorSplits and TestConveyorTransfer failing during setup because of stability
All entities were spawned at 0,0,0 together and groundwatch was killing them
Now setting server.stability to false in setup
Updated some old client tests to use scoped convars
SetUp and TearDown can now fail the test is they throw
They run using ExecuteTestInternal like the tests
Test runner window now supports repeated tests
Add worldmodel component to binoculars worldmodel
Add tree and default to workbenches deploy volume
Exclude hidden redirects so the new barrels / shelves which now use dummy redirect base items don't fail all the tests
Removed some old ad-hoc entity cleanup methods in TestTrees and TestRockets
Added OnBeforeSetUp and OnAfterTearDown. Overriden by RustTextFixture, includes all the entity and item cleanup
This makes sure tests arent exploding if we forget to call the base SetUp and Teardown, it was too fragile
Updated all tests
Update all tests to call the base SetUp
Removed KillAllEntitiesInRadius calls
We now take a snapshot of all server entities on test setup, and kill the difference on test teardown
Fixes entities leaking from tests
Export the test list before running the tests from the pipeline
Deployable test for containers missing inventory open & close sounds
Flags the new tin can alarm
Fix a test fixture convar
Add test for meshes used by particle systems having RW enabled
Improve the mesh collider test
Fix repair item target for the base industrial wall light (only did the variants before)
Updated all the convarscope calls in tests to use the new notation
Simplified ConVarScope calls
Removed obsolete test on TestSolarPanel
Test list
Rebuild aggregated results when filtering tests using the search bar
Also allow Select Tests menu items on scriptable objects