본문으로 이동

xUnit.net

위키백과, 우리 모두의 백과사전.

xUnit.net
원저자제임스 뉴커크, 브래드 윌슨
개발자마이크로소프트, Outercurve Foundation, 닷넷 재단
안정화 버전
2.6.2[1] / 2023년 11월 18일(2년 전)(2023-11-18)
저장소github.com/xunit/xunit/
프로그래밍 언어C#
운영 체제윈도우, macOS, 리눅스
플랫폼닷넷 프레임워크, .NET Core, 모노
종류유닛 테스트 도구
라이선스아파치 라이선스 2.0
웹사이트xunit.net

xUnit.net은 NUnit의 원저자가 작성한 닷넷 프레임워크용 자유-오픈 소스 유닛 테스트 도구이다. 이 소프트웨어는 .NET Core 및 모노와 함께 사용할 수도 있다.[2]

이 소프트웨어는 아파치 라이선스 2.0 하에 라이선스가 부여되며, 소스 코드는 깃허브에서 이용할 수 있다.[3] xUnit.net은 자마린, ReSharper, CodeRush 및 TestDriven.NET과 함께 동작한다.[4] 이 도구는 제임스 뉴커크와 브래드 윌슨이 만들었다.[5]

예제

[편집]

xUnit.net 테스트 픽스처의 예시:

using Xunit;

public class MyTests
{
    [Fact]
    public void MyTest()
    {
        Assert.Equal(4, 2 + 2);
    }
}

테스트를 컴파일한 후, 콘솔에서 다음과 같이 실행한다:

C:\MyTests\bin\Debug>xunit.console MyTestLibrary.dll
xUnit.net console test runner (64-bit .NET 2.0.50727.0)
Copyright (C) 2007-11 Microsoft Corporation.

xunit.dll:     Version 1.9.1.0
Test assembly: C:\MyTests\bin\Debug\MyTestLibrary.dll

1 total, 0 failed, 0 skipped, took 0.302 seconds

같이 보기

[편집]

각주

[편집]
  1. ↑ “Releases · xunit/xunit”. 《GitHub》.
  2. ↑ “How to Test ASP.NET Core Web API”. 《InfoQ》.
  3. ↑ “About xUnit.net”. 《GitHub》. 2021년 11월 4일.
  4. ↑ Kanjilal, Joydip (2017년 2월 10일). “How to work with xUnit.Net framework”. 《InfoWorld》.
  5. ↑ “Leaving Microsoft”. 《Brad Wilson》.

더 읽어보기

[편집]

외부 링크

[편집]