Database Reference
In-Depth Information
If you only want to run the tests for one of the chapters, you can change directories
to the appropriate chapter (ensure that this is the directory with a pom.xml file in it)
and run the mvn clean install command again. Alternatively, staying in the
N4JIA_SAMPLE_HOME directory, you can use the following command (substituting the
appropriate directory where the pom.xml file resides as required):
mvn clean install -f chapter04/pom.xml
Chapter 10 instructions
Thesamplecodein chapter 10 includestestsanddemosthatinvolverunningNeo4jinserv-
er mode. As quite a few of these tests are used for gauging performance-related metrics
using different options, we decided to have the server start up independently of the tests
running against them, to get as accurate a measurement as possible. This also enables you
to go through the process of setting up a server for yourself.
Unlike all the other tests, which up until now have made use of Java JUnit-based tests,
the performance-related tests in chapter 10 are to be initiated from the command line via a
series of bash scripts.
As one of the clients chosen to execute some performance tests was the simple Unix-based
curl ( http://curl.haxx.se ) client, the performance-testing scripts are only available as bash
scripts that can be run in (*nix) environments. If you're on Windows, you could try in-
stalling Cygwin ( www.cygwin.com ) , which provides a form of Linux emulation, and then
run the scripts from within there:
1 . By default, when you run the standard mvn clean install , the performance-
related tests in chapter 10 are not run. If you look at the output in the console, when it
gets to chapter 10 , you should see something like figure B.1 .
Search WWH ::




Custom Search