I have an issue with the following bash script:
#Install and start application ./gradlew assemble java -jar bignibou-server/build/libs/bignibou-server.jar& #Run end2end tests node_modules/.bin/protractor bignibou-client/protractor.conf.js
The first part of the script start a java application and the second part run end2end tests on that java application.
The trouble is that the end2end tests run before the java application has really started properly.
Can the bash help me here? Using the
& is the cause of my problem. What is the correct way to end the
java -jar command?