Running node script when starting .NET test suite

50 views Asked by At

I'm looking for a way to connect a test neo4j db to my Mspec test suite. If found neodb. Is there a way that I can create a script that runs everytime the test suite is run?

2

There are 2 answers

0
mchomin On

You could use:

Context before_all

To execute code before your tests

0
Alexander Groß On

If you have a class deriving from IAssemblyContext mspec will run it before any of the mspec contexts in the respective assembly. This is useful for general global setup.

Specific setup for mspec contexts (classes with It delegates) goes into Establish delegates.