Bug Report T706298
Visible to All Users

Unit Testing - The Test icon disappears in the code editor for private async method tests marked with the [Theory] and [ClassData] attributes in the .Net Core project

created 6 years ago (modified 6 years ago)

CodeRush 18.2.6

Hello, we are using CodeRush test runner and we like to run tests from code editor. There is an issue with the test marked with [Theory] attribute and using [ClassData] or [MemberData].

These tests can be run fromTestRunner, but the button for running the test in Code editor is often missing for tests with [ClassData]. Sometimes is visible but more often is not shown. So these tests can be run only from Test runner.

See screenshots for Test runner and Code editor.

With a simple Class data, (as bellow) the button is always visible.But with complicated (IMO non serializable) data, the button is missing.

C#
public class TestXUnit { [Theory] [ClassData(typeof(TestTheoryData))] private void TestTheory(string test) { Assert.NotNull(test); } } public class TestTheoryData : TheoryData<string> { public TestTheoryData() { Add("1"); Add("2"); } }
Show previous comments (5)
K K
Karel Král Scia 6 years ago
    K K
    Karel Král Scia 6 years ago
      DevExpress Support Team 6 years ago

        Thank you for the logs and screencast. We have reproduced the issue with the .Nat Core test project. We will investigate this problem and will let you know once we have any progress.

        Answers approved by DevExpress Support

        created 6 years ago (modified 6 years ago)

        We have fixed the issue described in this ticket and will include the fix in our next maintenance update. To apply this solution before the official update, request a hotfix by clicking the corresponding link for product versions you require.

        Note: Hotfixes may be unavailable for beta versions and updates that are about to be released.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.