{"id":20981234,"url":"https://github.com/dotnet4neo4j/testingwithneo4j","last_synced_at":"2026-04-11T07:45:02.217Z","repository":{"id":145975745,"uuid":"85841621","full_name":"DotNet4Neo4j/TestingWithNeo4j","owner":"DotNet4Neo4j","description":"Examples of testing against a Neo4j instance that is started on the fly, using NUnit, XUnit and MSTest","archived":false,"fork":false,"pushed_at":"2017-03-22T15:04:41.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-01T02:36:04.383Z","etag":null,"topics":["csharp","dotnet","integration-testing","mstest","neo4j","nunit","testing","xunit"],"latest_commit_sha":null,"homepage":null,"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/DotNet4Neo4j.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"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-03-22T15:01:39.000Z","updated_at":"2022-09-04T20:53:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"2a68b788-e12f-4a49-8cae-59ca3ed1b1af","html_url":"https://github.com/DotNet4Neo4j/TestingWithNeo4j","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DotNet4Neo4j/TestingWithNeo4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNet4Neo4j%2FTestingWithNeo4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNet4Neo4j%2FTestingWithNeo4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNet4Neo4j%2FTestingWithNeo4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNet4Neo4j%2FTestingWithNeo4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DotNet4Neo4j","download_url":"https://codeload.github.com/DotNet4Neo4j/TestingWithNeo4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DotNet4Neo4j%2FTestingWithNeo4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31673067,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"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":["csharp","dotnet","integration-testing","mstest","neo4j","nunit","testing","xunit"],"created_at":"2024-11-19T05:35:20.040Z","updated_at":"2026-04-11T07:45:02.199Z","avatar_url":"https://github.com/DotNet4Neo4j.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Testing .NET code against Neo4j \n\nThis is an example solution showing a super simple set of tests against a Neo4j server that is started at the beginning of the test, and shut down afterwards.\nIn each of the projects, the server is:\n\n1. Installed as a service\n2. Started\n3. Populated with data\n4. Tested against\n5. Stopped\n6. Uninstalled\n\n*IF* you have a server already installed on your machine - and you run this with out changing any settings - this will **wipe** it, so be **cautious**!\n\n## Bits to check before you run these tests\n\n1. You need to install the Windows SDK (for PowerShell automation)\n2. You will need to run the tests as an *Administrator*\n   - This includes either Visual Studio (if using the built in test runner / ReSharper) or a PowerShell/Command Prompt \n   - This is because we're installing a service to do the tests.\n\n## Step by Step\n\n1. Download the **ZIP** version of Neo4j from the [Neo4j Website](https://neo4j.com/download/other-releases/) and unzip into a folder of your choice.\n2. [Optional] Edit the `conf/neo4j.conf`\n   - Change `dbms.windows_service_name=` to something meaningful, for example: `neo4j-integration-testserver`\n   - Change the ports for Bolt/REST endpoints\n3. Run Visual Studio as an Administrator\n4. Edit the `app.config` file to point to the server - in particular if you changed any port / security settings in step 2\n   - This is shared between all the projects, so you only need to edit one of them.\n5. Edit the `appsettings.json` file to point to the server as well.\n   - This is shared between all the projects, so you only need to edit one of them.\n6. Run the tests!\n   - Should work with \n     - VS Test Runner (group by Project to get the best output)\n     - ReSharper\n     - XUnit Console Runner (XUnit only Obvs)\n     - NUnit Console Runner (NUnit only again - Obvs)\n\n## Common Issues\n\n- Not Running as Admin\n  - Because we need to install a new service, you need to be an Administrator\n- Unable to find server to run tests\n  - Check your config (`appsettings.json` and `app.config`) are in sync and both point to the right place","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet4neo4j%2Ftestingwithneo4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdotnet4neo4j%2Ftestingwithneo4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdotnet4neo4j%2Ftestingwithneo4j/lists"}