Hi Michael,

The plugin works like a charm!

Before I was using in my RSpec setup:

  config.before(:each, :neo4j => true) do
    sh "~/neo4j-server/bin/neo4j stop"
    sh "rm -rf ~/neo4j-server/data/graph.db"
    sh "~/neo4j-server/bin/neo4j start"
    sleep 2
  end

Which took 227.13 seconds to run, with the plugin it takes only 1.38 seconds
to run for 24 tests. This makes TDD fun again :)

Thanks,

-Mark




On Wed, Mar 2, 2011 at 5:54 PM, Michael Hunger <
[email protected]> wrote:

> Hey guys,
>
> whoever of you used the server from a remote client and wanted to use it in
> functional tests had the issue with restarting the server and cleaning the
> db-directory with each test (to have independend tests).
>
> Mark Nijhof addressed this problem and I experienced it myself when
> developing against the REST Server.
>
> You can find the plugin here:
> https://github.com/jexp/neo4j-clean-remote-db-addon
>
> Looking forward to your feedback.
>
> Cheers
>
> Michael
>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
>



-- 
Mark Nijhof
m: 0031 6 23 83 07 39
b:  cre8ivethought.com/blog/index
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to