Table of contents
You can install the Ponicode CLI via npm simply by using this command:
npm install -g ponicode
No matter the language you wish to test Ponicode CLI on, Node version 14 (recommended) or above is required. Click here to download node
Before using Ponicode CLI, you have to login to Ponicode.
Enter this command and follow the steps on your browser:
You can logout using
To init your project and create the
ponicode.config.json please run the following command:
Please note that for the moment, test files are grouped in a separate folder (by default
./ponicode). The folder name can be changed using the init command.
The tests generated by Ponicode may need some additional dependencies to run. Make sure you have all the following packages installed in your project:
npm install --save-dev rewire # dependency injection for unit testing npm install --save-dev jest@26 class-transformer # unit test framework
npm install --save-dev rewire @types/rewire # dependency injection for unit testing npm install --save-dev jest@26 @types/jest ts-jest@26 class-transformer # unit test framework