Skip to content

enterprisecoding-ltd/jenkins-ornek-dotnetcore

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sample application is part of DotNet samples

Unit testing using dotnet test sample

This sample is part of the unit testing tutorial for creating applications with unit tests included. See that topic for detailed steps on the code for this sample.

Key features

This sample demonstrates creating a library and writing effective unit tests that validate the features in that library. The example provides a service that indicates whether a number is prime.

Restore and test

To run the tests, navigate to the PrimeService.Tests directory and type the following commands:

dotnet restore
dotnet test

dotnet restore restores the packages of both projects.

dotnet test builds both projects and runs all of the configured tests.

Note: Starting with .NET Core 2.0 SDK, you don't have to run dotnet restore because it's run implicitly by all commands that require a restore to occur, such as dotnet new, dotnet build and dotnet run. It's still a valid command in certain scenarios where doing an explicit restore makes sense, such as continuous integration builds in Azure DevOps Services or in build systems that need to explicitly control the time at which the restore occurs.

About

Jenkins pipeline'ı için örnek DotNet Core uygulaması

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages