Search Unity

Feature Request Branch Coverage analysis tool

Discussion in 'Testing & Automation' started by pelaezjorge, Apr 28, 2021.

  1. pelaezjorge

    pelaezjorge

    Joined:
    Aug 3, 2020
    Posts:
    8
    Good morning!
    In my team we've relying on Unity's Test Runner and Code Coverage for some months, and the experience couldn't be better. As Code Coverage only supports line coverage, we have been careful to test every state and condition possible.

    But recently having a branch coverage report turned to be an essential requirement, so I would like to ask if there is such tool that is compatible with Edit and Play mode tests. I researched a little on the web but didn't find anything that would suit the needs.

    Thank you very much!
     
    denravonska likes this.
  2. Unity-Nikos

    Unity-Nikos

    Unity Technologies

    Joined:
    Sep 30, 2015
    Posts:
    87
    Hi @pelaezjorge - thank you for the feedback! Adding Branch Coverage and NPath Complexity support in the Unity Engine and Code Coverage package is in the roadmap. Regrettably, we can't give a timeframe for when this is going to be available.

    As this requires changes in the Unity Engine there shouldn't be any other tool that provides Branch Coverage.

    Thank you
    Nikos
     
    Xarbrough and nowsprinting like this.
  3. pelaezjorge

    pelaezjorge

    Joined:
    Aug 3, 2020
    Posts:
    8
    Hi Nikos,
    thank you very much for your answer and for your hard work.

    We will be waiting for those features then!
     
    Unity-Nikos likes this.
  4. trueh

    trueh

    Joined:
    Nov 14, 2013
    Posts:
    74
    Same here. Branch coverage analysis is a basic tool when it comes to testing complex game logic. I would be happy to have it.
     
    Unity-Nikos likes this.
  5. skazmierczak

    skazmierczak

    Joined:
    Feb 28, 2020
    Posts:
    9
    Any updates on branch coverage? I Dont see it on the roadmap
     
  6. Unity-Nikos

    Unity-Nikos

    Unity Technologies

    Joined:
    Sep 30, 2015
    Posts:
    87
    Branch coverage is still on the backlog but there are currently higher priority items we are working on. I can’t provide a timeframe for when this situation changes but will share updates when we know more.
     
  7. dangdinhquang

    dangdinhquang

    Joined:
    Jul 17, 2023
    Posts:
    1
    wait for a good new
     
  8. MartinToutirais

    MartinToutirais

    Joined:
    Mar 25, 2021
    Posts:
    6
    Hi @Unity-Nikos, and thank you for your answers. Sorry to bring this back but it's been several months since the last update. Do you have any news about how to get "Branch Coverage" data compatible with Edit and Play mode tests ?