unit test in visual studio for d365 fo using x++

Gokulraj Chandrasekaran 0 Reputation points
2024-04-26T05:12:47.0533333+00:00

I create the unit test in visual studio 2022.

create the employ class and employTest class. the test class extends the sysTestcase and i add the test method the write in below:

[SysTestMethodAttribute]

void testName()

{

// Verify that the employee name is set correctly.

this.assertEquals("your name", employee._name());

}

and I want to test it but the test is not show in test explorer.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,190 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,004 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
351 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,050 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VarunTha 9,185 Reputation points Microsoft Vendor
    2024-04-26T06:27:38.6066667+00:00

    Hi Gokulraj Chandrasekaran,

    Thank you for reaching out to us on the Microsoft Q&A forum.

    This topic is currently not supported in the Q&A forums.

    I suggest you start a new discussion via the Developer Community(visual studio). and moderators will be there to help you.

    Please don't forget to Accept helpful answer and close this thread.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.