Angular testing while serving
up vote
-1
down vote
favorite
I am new to Angular, so not sure if this is possible.
I am trying to write tests for my application, but it is annoying because I have to keep stopping my process to do ng test
and then once I have written the tests and the code, I have to run ng serve
.
Is there no way to run both side by side?
angular jasmine
add a comment |
up vote
-1
down vote
favorite
I am new to Angular, so not sure if this is possible.
I am trying to write tests for my application, but it is annoying because I have to keep stopping my process to do ng test
and then once I have written the tests and the code, I have to run ng serve
.
Is there no way to run both side by side?
angular jasmine
1
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I am new to Angular, so not sure if this is possible.
I am trying to write tests for my application, but it is annoying because I have to keep stopping my process to do ng test
and then once I have written the tests and the code, I have to run ng serve
.
Is there no way to run both side by side?
angular jasmine
I am new to Angular, so not sure if this is possible.
I am trying to write tests for my application, but it is annoying because I have to keep stopping my process to do ng test
and then once I have written the tests and the code, I have to run ng serve
.
Is there no way to run both side by side?
angular jasmine
angular jasmine
asked Nov 19 at 15:59
r3plica
4,1121445120
4,1121445120
1
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23
add a comment |
1
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23
1
1
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53378421%2fangular-testing-while-serving%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Why don't you open two terminals at the same time?.. Jasmine even use a different port, by default. So you can serve the app on the port 4200 and use jasmine on port 8000 (if I remember correct)
– Jacopo Sciampi
Nov 19 at 16:04
i didn't know you could do that :) post it as an answer and I will mark it :)
– r3plica
Nov 19 at 16:21
Don't worry, if that solved your problem is fine to me. You can just upvote the comment, I think is enough :)
– Jacopo Sciampi
Nov 19 at 16:23