jbmusso / grex

JavaScript graph database client for TinkerPop2 Rexster
MIT License
46 stars 12 forks source link

test data missing #20

Closed poelzi closed 10 years ago

poelzi commented 10 years ago

Hi,

the data against which the tests are running is missing. Could you please add the dump file or assume an empty database at beginning.

fattenap commented 10 years ago

Hi Daniel,

The tests use the default Rexster database called tinkergraph, which populates the graph with the data that the tests use. In saying that, gRex has recently undergone some changes that require the tests to be reviewed and potentially updated to reflect these changes. I hope to do this soon.

Thanks Frank

fattenap commented 10 years ago

Hi Daniel,

I've updated the grunt file so that you can run the tests easily. You need Node.js and grunt to run the tests. So once Node.js and grunt are installed, install gRex:

> npm install grex
> cd node_modules/grex
> npm install

Ensure the batch-kibble-XXX.jar, located in the modules lib folder, is in the /ext folder and that rexster.xml has the correct configuration i.e.

       <graph>
            <graph-name>tinkergraph</graph-name>
            <graph-type>tinkergraph</graph-type>
            <graph-location>data/graph-example-1</graph-location>
            <graph-storage>graphson</graph-storage>
            <extensions>
                <allows>
                    <allow>tp:gremlin</allow>
                    <allow>tp:batch</allow>
                </allows>
            </extensions>
        </graph>

Start up Rexster then run

> grunt test

Now sometimes Rexster is a little slow at returning an initial response. If the test fails due to timing out, rerun it and hopefully the tests should all pass.

Frank