Link Search Menu Expand Document
Table of contents
  1. Installation and setup
    1. Install Ponicode CLI
    2. Login to Ponicode CLI
    3. Init your project
    4. Dependencies

Installation and setup

Install Ponicode CLI

You can install the Ponicode CLI via npm simply by using this command:

npm install -g ponicode

NOTE

No matter the language you wish to test Ponicode CLI on, Node version 14 (recommended) or above is required. Click here to download node

Login to Ponicode CLI

Before using Ponicode CLI, you have to login to Ponicode.

Enter this command and follow the steps on your browser:

ponicode login

You can logout using

ponicode logout

Init your project

To init your project and create the ponicode.config.json please run the following command:

ponicode init

:warning: 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.

Dependencies

The tests generated by Ponicode may need some additional dependencies to run. Make sure you have all the following packages installed in your project:

  • Javascript
npm install --save-dev rewire # dependency injection for unit testing
npm install --save-dev jest@26 class-transformer # unit test framework
  • Typescript
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
> Use Ponicode CLI