Hi, I have written mocha unit tests, which run well and as expected. Thanks to lots help that I had received on the Forum.
Before I run those mocha unit tests, I had loaded test data "files" manually into the MongoDB (My NodeJS project can post data files and I have the URL that establishes the connection to the MongoDB database on the server.) And I use a tool: Advanced REST Client. By the way, I had three different data files and I must load each of those files many times.
I wish that I could load data files programmatically like using the setup and teardown methods in JUnit instead of doing it manually. Can anybody tell me how to do it ( I have been searching on the internet for an example)? Thank you very much.