{"id":13431831,"url":"https://github.com/nunit/dotnet-test-nunit","last_synced_at":"2026-01-14T04:09:01.865Z","repository":{"id":66104023,"uuid":"59618647","full_name":"nunit/dotnet-test-nunit","owner":"nunit","description":"Deprecated test runner for .NET Core. For use with project.json only. For recent releases of .NET Core, use the NUnit 3 Visual Studio Adapter","archived":true,"fork":false,"pushed_at":"2017-11-26T16:05:06.000Z","size":177,"stargazers_count":68,"open_issues_count":29,"forks_count":25,"subscribers_count":25,"default_branch":"master","last_synced_at":"2025-11-27T14:20:35.693Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.nuget.org/packages/dotnet-test-nunit/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nunit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2016-05-25T00:41:26.000Z","updated_at":"2024-12-26T13:44:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"7cd7527c-d867-4d61-8f2f-c96b5feedb94","html_url":"https://github.com/nunit/dotnet-test-nunit","commit_stats":{"total_commits":98,"total_committers":11,"mean_commits":8.909090909090908,"dds":0.2551020408163265,"last_synced_commit":"4b12924c74989adbda71321ff4f8453e6e8692a6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/nunit/dotnet-test-nunit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunit%2Fdotnet-test-nunit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunit%2Fdotnet-test-nunit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunit%2Fdotnet-test-nunit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunit%2Fdotnet-test-nunit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nunit","download_url":"https://codeload.github.com/nunit/dotnet-test-nunit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nunit%2Fdotnet-test-nunit/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:01:06.315Z","updated_at":"2026-01-14T04:09:01.828Z","avatar_url":"https://github.com/nunit.png","language":"C#","funding_links":[],"categories":["Frameworks, Libraries and Tools","框架, 库和工具","Testing"],"sub_categories":["Testing","测试"],"readme":"# NUnit 3 Test Runner for .NET Core\n\n## Deprecated\n\nThis project is deprecated. The test adapter API changed when .NET Core switched from\n`project.json` to the new `csproj` format. For newer .NET Core and .NET Standard\nprojects, use the [NUnit 3 Visual Studio Test adapter](https://github.com/nunit/nunit3-vs-adapter)\nto run tests at the command line using `dotnet test`, in CI or in Visual Studio.\n\nFor more information on how to test .NET Core, see the\n[.NET Core/.NET Standard documentation](https://github.com/nunit/docs/wiki/.NET-Core-and-.NET-Standard).\n\n If you are reporting **issues**, we are no longer making updates to this project or the use of `dotnet-test-nunit` and `project.json`. Issues should be reported against the [NUnit 3 Visual Studio Test adapter](https://github.com/nunit/nunit3-vs-adapter).\n\n\n[![Build status](https://ci.appveyor.com/api/projects/status/yg7dawcy1106g1li/branch/master?svg=true)](https://ci.appveyor.com/project/CharliePoole/dotnet-test-nunit/branch/master) [![Travis Build Status](https://travis-ci.org/nunit/dotnet-test-nunit.svg?branch=master)](https://travis-ci.org/nunit/dotnet-test-nunit)\n\n`dotnet-test-nunit` is the unit test runner for .NET Core for running unit tests with NUnit 3.\n\n## Usage\n\n`dotnet-test-nunit` is still an alpha release, so you need to select `show prereleases` if you are using Visual Studio.\n\nYour `project.json` in your test project should look like the following;\n\n### project.json\n\n```json\n{\n    \"version\": \"1.0.0-*\",\n\n    \"dependencies\": {\n        \"NUnit\": \"3.5.0\",\n        \"dotnet-test-nunit\": \"3.4.0-beta-3\"\n    },\n\n    \"testRunner\": \"nunit\",\n\n    \"frameworks\": {\n        \"netcoreapp1.0\": {\n            \"imports\": \"portable-net45+win8\",\n            \"dependencies\": {\n                \"Microsoft.NETCore.App\": {\n                    \"version\": \"1.0.0-*\",\n                    \"type\": \"platform\"\n                }\n            }\n        }\n    }\n}\n```\n\nThe lines of interest here are the dependency on `dotnet-test-nunit`. I have added `\"testRunner\": \"nunit\"` to specify NUnit 3 as the test adapter. I also had to add to the imports for both the test adapter and NUnit to resolve.\n\nYou can now run your tests using the Visual Studio Test Explorer, or by running `dotnet test` from the command line.\n\n```sh\n# Restore the NuGet packages\ndotnet restore\n\n# Run the unit tests in the current directory\ndotnet test\n\n# Run the unit tests in a different directory\ndotnet test test/NUnitWithDotNetCoreRC2.Test\n```\n\n### Notes\n\nNote that the `dotnet` command line swallows blank lines and does not work with color.\nThe NUnit test runner's output is in color, but you won't see it. These are known issues with\nthe `dotnet` CLI and not an NUnit bug.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunit%2Fdotnet-test-nunit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnunit%2Fdotnet-test-nunit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnunit%2Fdotnet-test-nunit/lists"}