sirko-io / engine

Benefit from new browsers' technologies to speed up your site
GNU General Public License v3.0
43 stars 3 forks source link

Tests clean all data from the DB #4

Open dnesteryuk opened 7 years ago

dnesteryuk commented 7 years ago

After launching tests all data from Neo4j gets removed. Tests must only remove data they create.

dnesteryuk commented 7 years ago

There is a simple workaround which can be used if Docker is used:

$ sudo docker run --name neo4j-test-db -d --env NEO4J_AUTH=none --restart always --publish 7484:7474 neo4j:3.0.6

The launched container will only be used in the test env:

# config/test.exs
config :neo4j_sips, Neo4j,
  url: "http://localhost:7484"

It doesn't solve all problems, but at least the generated data from the dev env doesn't get removed.