Įvykiai
03-17 21 - 03-21 10
Prisijunkite prie meetup serijos, kad sukurtumėte keičiamo dydžio DI sprendimus, pagrįstus realaus pasaulio naudojimo atvejais, su kolegomis kūrėjais ir ekspertais.
Registruotis dabarŠi naršyklė nebepalaikoma.
Atnaujinkite į „Microsoft Edge“, kad pasinaudotumėte naujausiomis funkcijomis, saugos naujinimais ir techniniu palaikymu.
You can run tests on already published output by using the dotnet vstest
command. This will work on xUnit, MSTest, and NUnit tests. Simply locate the DLL file that was part of your published output and run:
dotnet vstest <MyPublishedTests>.dll
Where <MyPublishedTests>
is the name of your published test project.
The commands below demonstrate running tests on a published DLL.
dotnet new mstest -o MyProject.Tests
cd MyProject.Tests
dotnet publish -o out
dotnet vstest out/MyProject.Tests.dll
Pastaba
Note: If your app targets a framework other than netcoreapp
, you can still run the dotnet vstest
command by passing in the targeted framework with a framework flag. For example, dotnet vstest <MyPublishedTests>.dll --Framework:".NETFramework,Version=v4.6"
. In Visual Studio 2017 Update 5 and later, the desired framework is automatically detected.
.NET atsiliepimas
.NET yra atvirojo kodo projektas. Pasirinkite saitą, kad pateiktumėte atsiliepimą:
Įvykiai
03-17 21 - 03-21 10
Prisijunkite prie meetup serijos, kad sukurtumėte keičiamo dydžio DI sprendimus, pagrįstus realaus pasaulio naudojimo atvejais, su kolegomis kūrėjais ir ekspertais.
Registruotis dabarMokymas
Modulis
C# testing in Visual Studio - Training
Start testing your C# apps by using the testing tools in Visual Studio. Learn to write tests, use Test Explorer, create test suites, and apply the red, green, refactor pattern to write code.