headcr4sh / node-maven

Maven for Node.js
Apache License 2.0
18 stars 14 forks source link

Process is killed after await mvn.execute #17

Closed DiabolusExMachina closed 6 years ago

DiabolusExMachina commented 6 years ago

Hello,

I was planning to use this library in a jest integration test. My idea was to start my backend perform tests and stop the backend. At first everything looks good. The backend starts, and the test begin. However the backend is stopped again before the tests begin.

This is the code I use

beforeAll(async () => {
  jasmine.DEFAULT_TIMEOUT_INTERVAL = 15000;
  await mvn.execute("spring-boot:start"); //backend starts up
  //process is gone, all tests fail :-( 
});

it('renders without crashing', async (done) => {
//...
}

afterAll(async () => {
  await mvn.execute("spring-boot:stop");
});

and this the documentation of the springboot plugin https://docs.spring.io/spring-boot/docs/current/maven-plugin/plugin-info.html

I'm on Windows

DiabolusExMachina commented 6 years ago

ok sorry my fault this also happen in my console. this can be closed

headcr4sh commented 6 years ago

Ok. Closing the issue. ;-)