Search Feedback

20
votes

Shuffle run test in test runner

Editor

-

-

My team and I use TDD as a main development technique for making our games. This is incredibly important to us and since we're only starting out we found that the Unity test runner is an amazing tool for this!
But as our tests grow in size we've come across random tests failing for seemingly no reason. We believe the issue lies in the fact the tests probably don't reset stats at the beginning and end of each test. That isn't the issue I want to present here.

Since tests need to be able to run successfully independently and while running with other tests an option to run the tests in shuffle mode would help greatly. What I mean by this is that the test runner does run all tests but shuffles the order of them, so they don't always go alphabetically. Shuffling through test files and individual tests would help greatly!

This is a very small change that could help immensely in the long run for any developer that is using TDD. I hope to see this feature in a Unity update :)

Comments (2)

  1. A6916eb0c0918e8c40e76bd6ea14c44d?d=mm

    ggluscic77

    Feb 10, 2019 16:12

    That would be a really great feature that would greatly improve test runner (Honestly I think it would be plain necessary to have that option to categorize it as a fully working feature).

  2. 36ebb2b5c29f39d932ec034737493949?d=mm

    kspes

    Feb 10, 2019 14:15

    this goes for both randomizing test class execution as well as the individual tests inside each class

Your opinion counts

Help us make things better. Share your great idea for improving Unity or vote for other people’s.

Log in to post a new idea

Categories

All

(11030)

2D

(290)

Ads

(63)

AI & Navigation

(83)

Analytics

(130)

Animation

(413)

Asset Store

(370)

Asset Store Publisher

(21)

Assets

(557)

Audio

(185)

Cloud Build

(154)

Collaborate

(70)

Docs & Tutorials

(251)

Editor

(2579)

Everyplay

(17)

Game Performance Reporting

(22)

General

(1003)

Graphics

(903)

GUI

(447)

Input

(173)

Licensing

(93)

Networking

(192)

Physics

(392)

Platforms

(448)

Profiling & Optimization

(84)

Runtime

(188)

Scripting

(1154)

Terrain

(177)

WebGL

(145)