This is a node.js test tool for testing implementations of mobject-graph. You create <yourtest>.test.js
in the tests folder. Use the existing tests as an example.
Before running this project, make sure you have:
- Node.js installed on your system.
- mobject-graph TwinCAT project, with mobject-graph-test-project active and running.
- Clone the Repository:
git clone https://github.com/Mobject-Dev-Team/mobject-graph-test-client.git cd mobject-graph-test-client
- Install Dependencies:
npm install
Create a .env file in the root directory of the project and add your TwinCAT Net Id as follows:
NET_ID=127.0.0.1.1.1
Run the tests using the following command:
npm test
If you are authoring tests and want the tests to restart on change then you can use the following command:
npm run test:watch
There are a few inbuilt playground options which allow you to see what is returned from the server. To run the the playground type the following command:
npm start
Requires mobject-graph v0.5.0