Forum Discussion

rodanger's avatar
rodanger
New Contributor
3 months ago
Solved

NUnit test fails to run in TestComplete

I have a Visual Studio NUnit C# Selenium test project which runs tests fine. I can also run these tests from the nunit-console.exe test runner: nunit3-console.exe testcore.dll --where "namespace == '...
  • rraghvani's avatar
    2 months ago

    After reading through https://support.smartbear.com/testcomplete/docs/testing-with/advanced/unit-testing/net-applications.html I've created a simple C# .NET 4.8 application with some basic unit tests, which has been picked up by TCUnitTest, shown below,

    Unit tests within my application

    When I run the following code, to execute all unit tests,

    UnitTesting["TCUnitTest"]["Execute"](); 

    all tests are executed, and the last test displays a message box,

    Message box shown when test TestMsgBox is called

    I couldn't get .NET 8.0 to work, and I'm not sure if it's supported.