Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing web - running the application missing #156

Open
noelo-cohelo opened this issue Mar 3, 2023 · 1 comment
Open

testing web - running the application missing #156

noelo-cohelo opened this issue Mar 3, 2023 · 1 comment

Comments

@noelo-cohelo
Copy link

https://spring.io/guides/gs/testing-web/

The main() method uses Spring Boot’s SpringApplication.run() method to launch an application. Did you notice that there is not a single line of XML? There is no web.xml file, either. This web application is 100% pure Java and you did not have to deal with configuring any plumbing or infrastructure. Spring Boot handles all of that for you.

Logging output is displayed. The service should be up and running within a few seconds.

This feels like the description of running the application is missing. Logging output of what is displayed?
There's a similar text on https://spring.io/guides/gs/rest-service/, just between those two paragraphs there is a description of how to run the application.
I guess one needs to do the same (for example gradlew bootRun), and only then run the tests (gradlew test). I would say this is pretty important part that is omitted right now.

@noelo-cohelo
Copy link
Author

Oh, I think test is running the application first. But then this second paragraph about logging should be removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant