UNPKG

@dot.indonesia/po-gen

Version:

This project has created to relieve work load as SDET or Automation Test Engineer. You just export the postman collection, and run this generator to write the automation code.

16 lines (15 loc) 599 B
#!/usr/bin/env node import { PogenCommand } from "./command/pogen.command.js"; const argument = process.argv[process.argv.length - 1]; const pogenCommand = new PogenCommand(argument); if (argument === 'generate' || argument === '' || argument.includes('/.bin/generate') || argument.includes('\\po-gen\\lib')) { console.log('Initiating automation generation'); pogenCommand.automation(); } else if (argument === 'env-generate') { console.log('Initiating environment generation'); pogenCommand.environment(); } else { console.log(`Unknown argument: ${argument}`); }