diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a2844f9..caf4140 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -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": { diff --git a/.dockerignore b/.dockerignore index 61a070b..2761a92 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,2 +1,3 @@ -target/ -.Trash-* +**/target/ +**/.bash_history +**/.Trash-* diff --git a/test-fast.sh b/test-fast.sh new file mode 100755 index 0000000..d9f8d41 --- /dev/null +++ b/test-fast.sh @@ -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