Search Unity

Help Wanted Run Tests On Compile?

Discussion in 'Testing & Automation' started by AcademyOfFetishes, Apr 9, 2019.

  1. AcademyOfFetishes


    Nov 16, 2018
    Hello. I have a feeling this is not possible, but I was wondering if there's a way I could create a script that automatically runs tests after I compile. I'd want to run the currently selected test, not all. See my workflow is this:

    1. Do some work
    2. Tab to unity to see if my test passes
    3. It compiles, I get bored and go to reddit
    4. I come back and realize it's been 5 minutes
    5. Run the test I want
    I feel like if I could automatically run the tests when I tab back, I'd waste less time here.
  2. Warnecke


    Unity Technologies

    Nov 28, 2017
    Hey. Currently that is not possible, but it should be possible to do this with our new API in the test-framework. We expect to have it ready in the 2019.2 timeframe.
    AcademyOfFetishes likes this.