I am creating a Java application UI that do some edits in an ionic app. then I need to run the ionic app with the command
npm run test automatically from the Java application. I am almost done with the Java code I only need an API that run npm commands from Java application.
I can do that manually by
- After running the Java application and edit in the ionic app.
- Opening the Node.js command prompt.
- Go to the folder directory.
npm run testfrom the Node.js CLI.
I want to automate that with an API.