Search Issue Tracker

Fixed in 2018.4

Votes

0

Found in

2018.4.3f1

Issue ID

1169256

Regression

Yes

Using Assert.Inconclusive in editmode stops the running test

Unity Test Runner

-

1. What happened

Using Assert.Inconclusive in the tests in editmode stops the running test.
An exception is triggered and the running test stop.

ArgumentException: Requested value ‘Inconclusive’ was not found.

IndexOutOfRangeException: There are no more elements to process and IsTestComplete is false.

2. How we can reproduce it using the example you attached

2.1. Create the folder (Editor Tests) for edit mode (Window->General-> Test Runner).

2.2. Create a script (EditorTest.cs) on the folder that you created on the last step.

using NUnit.Framework;

public class EditorTest
{
[Test]
public void Test0()
{
Assert.True(true);
}

[Test]
public void Test1()
{
Assert.Inconclusive("Inconclusive test");

Assert.True(true);
}

[Test]
public void Test2()
{
Assert.True(true);
}
}

2.3. Run the Edit Mode tests (Window->General-> Test Runner->Run All).

Expected: all the test are executed.
Actual: An exception is triggered and the running test stop.

ArgumentException: Requested value ‘Inconclusive’ was not found.
IndexOutOfRangeException: There are no more elements to process and IsTestComplete is false.

This happens in Unity Unity 2018.4.3, but not in 2019.1.8 or 2018.3.6

Comments (4)

  1. 01611cd74993b0dfbc74a7bd6d625548?d=mm

    kohiios

    Jul 25, 2019 05:13

    I am a motion picture enthusiast and love watching the movies in a hurry. https://peggoapk.com/kohi-movie-apk-android-ios/ Having a specialized bowed of brain, makes me search through different applications that could enable me to download motion pictures and music effectively.

  2. F7ca7fe27747ef18d67cc95b1313dd83?d=mm

    annajohnsn

    Jul 16, 2019 11:35

    This is very educational for me as a CS student. I must say this http://www.pariscitytourguide.com/paris-city-tour/best-neighborhoods-paris-every-type-traveler/ is a brilliant site for information regarding different issues and errors. They provide a pool of tools where we can run demos, solutions, etc along with a great platform to hold discussions.

  3. 561359d0021671c8076182a0509e0bf9?d=mm

    impossiblegameaz

    Jul 15, 2019 09:03

    The article is really nice and interesting. I have searched for this type of information and would love to read this information. I hope you will share more useful articles like that. Thanks for sharing!
    https://fireboyand-watergirl.com/

  4. F17417d865bb690f3fc263fd56ba07ed?d=mm

    cyberflixtvappco

    Jul 14, 2019 11:19

    Thank you so much for the nice share, I have really felt happy for this.
    https://cyberflixtvapp.co/

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.