0.0.0-beta.1 • Published 3 years ago

jpe v0.0.0-beta.1

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Use without cloning :

How to install

npm install -g jpe

Commands

init

to create pipelines in local directory

jpe init

load

to load a yaml file contents for future use

jpe load [-f --file] <fileName>

#Testing

testing is being done by harnessing executeHelper (thanks to https://medium.com/@zorrodg/integration-tests-on-node-js-cli-part-2-testing-interaction-user-input-6f345d4b713a)

to run an integration test for the cli :

const helper = new ExecuteHelper(<COMMAND>);
helper.execute([LIST_OF_COMMANDS]); 

LIST_OF_COMMANDS might contain :

  • list of inputs (e.g - "y" , "n" , some input)
  • DOWN : go down in a list
  • UP : go up in a list
  • ENTER : enter an input (must come after an input)
  • SPACE : self explanatory
  • TERMINATE : to terminate the cli in a middle of a run, used to test a sepcific question sequence and skip the rest

for instance :

const helper = new ExecuteHelper("run");
await helper.execute(["y", ENTER, "n", ENTER, DOWN, DOWN, ENTER, TERMNIATE]);