Skip to content

Commit

Permalink
run tests using neo4j from docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
jifalops committed Feb 27, 2024
1 parent 434e9e2 commit 2f09086
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"workspaceFolder": "/cypher-dto",
"postCreateCommand": ".devcontainer/post-create.sh",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers/features/docker-in-docker:2": {}
},
"customizations": {
"vscode": {
Expand Down
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
target/
.Trash-*
**/target/
**/.bash_history
**/.Trash-*
5 changes: 5 additions & 0 deletions test-fast.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Test on a running Neo4j instance instead of spinning up a container for each test.
export NEO4J_TEST_URI="bolt://db:7687"
export NEO4J_TEST_USER="neo4j"
export NEO4J_TEST_PASS="developer"
cargo test

0 comments on commit 2f09086

Please sign in to comment.