{"id":15039928,"url":"https://github.com/fulls1z3/xunit-orderer","last_synced_at":"2025-10-04T05:30:38.663Z","repository":{"id":66165383,"uuid":"97266921","full_name":"fulls1z3/xunit-orderer","owner":"fulls1z3","description":"Implementation of ITestCaseOrderer enforcing xUnit to run the facts in strict order","archived":true,"fork":false,"pushed_at":"2018-10-12T08:57:11.000Z","size":13,"stargazers_count":15,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-09-10T04:53:27.139Z","etag":null,"topics":["case","dot-net","fact","orderer","testing","xunit"],"latest_commit_sha":null,"homepage":"","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/fulls1z3.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-14T19:34:40.000Z","updated_at":"2023-01-28T16:35:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"0cd4265c-5e89-4037-82f9-041822db0895","html_url":"https://github.com/fulls1z3/xunit-orderer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fulls1z3/xunit-orderer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulls1z3%2Fxunit-orderer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulls1z3%2Fxunit-orderer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulls1z3%2Fxunit-orderer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulls1z3%2Fxunit-orderer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fulls1z3","download_url":"https://codeload.github.com/fulls1z3/xunit-orderer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fulls1z3%2Fxunit-orderer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278267399,"owners_count":25958847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"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":["case","dot-net","fact","orderer","testing","xunit"],"created_at":"2024-09-24T20:44:00.134Z","updated_at":"2025-10-04T05:30:38.387Z","avatar_url":"https://github.com/fulls1z3.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xUnit Orderer\n\u003e Please support this project by simply putting a Github star. Share this library with friends on Twitter and everywhere else you can.\n\n**`xUnit Orderer`** is an implementation of ITestCaseOrderer enforcing [xUnit] to run the facts in strict order.\n\nThere're some scenarios that you might need to chain the `fact`s to be evaluated in a strict order. This project implements the `ITestCaseOrderer` interface of [xUnit] and provides the `TestPriority` decorator to perform the test case ordering.\n\nCheck out the example below for details.\n\n## Prerequisites\nPackages in this project depend on\n- [xUnit v2.2.0](https://www.nuget.org/packages/xunit)\n\n\u003e Older versions contain outdated dependencies, might produce errors.\n\n## Getting started\n### Installation\nYou can install **`xUnit Orderer`** by running following commands in the Package Manager Console\n```\nInstall-Package XunitOrderer\n```\n\n## Usage\n#### AssemblyInfo.cs\n```csharp\nusing System.Reflection;\nusing System.Runtime.InteropServices;\nusing Xunit;\n\n...\n\n[assembly:CollectionBehavior(DisableTestParallelization = true)]\n[assembly:TestCollectionOrderer(\"XunitOrderer.TestCollectionOrderer\", \"XunitOrderer.Testing\")]\n```\n\n#### TestClass1.cs\n```csharp\n[TestPriority(10)]\npublic class TestClass1 : TestClassBase\n{\n    [Fact]\n    [TestPriority(101)]\n    public void First()\n    {\n        Assert.Equal(1, 1);\n    }\n \n    [Fact]\n    [TestPriority(102)]\n    public void Second()\n    {\n        Assert.Equal(2, 2);\n    }\n}\n```\n\n#### TestClass2.cs\n```csharp\n[TestPriority(20)]\npublic class TestClass2 : TestClassBase\n{\n    [Fact]\n    [TestPriority(103)]\n    public void Third()\n    {\n        Assert.Equal(3, 3);\n    }\n \n    [Fact]\n    [TestPriority(104)]\n    public void Fourth()\n    {\n        Assert.Equal(4, 4);\n    }\n}\n```\n\nThe execution order of the `fact`s are:\n- TestClass1 -\u003e First\n- TestClass1 -\u003e Second\n- TestClass2 -\u003e Third\n- TestClass2 -\u003e Fourth\n\n\u003e Built with `.NET Framework v4.6.2`, solution currently supports `xUnit v2.2.0`.\n\n## Contributing\nIf you want to file a bug, contribute some code, or improve documentation, please read up on the following contribution guidelines:\n- [Issue guidelines](CONTRIBUTING.md#submit)\n- [Contributing guidelines](CONTRIBUTING.md)\n- [Coding rules](CONTRIBUTING.md#rules)\n- [ChangeLog](CHANGELOG.md)\n\n## License\nThe MIT License (MIT)\n\nCopyright (c) 2017 [Burak Tasci]\n\n[xUnit]: https://xunit.github.io/\n[Burak Tasci]: http://www.buraktasci.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulls1z3%2Fxunit-orderer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffulls1z3%2Fxunit-orderer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffulls1z3%2Fxunit-orderer/lists"}