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

Document how to import and run a smoke tests in the IDE #17757

Open
jamesward opened this issue Aug 1, 2019 · 5 comments
Open

Document how to import and run a smoke tests in the IDE #17757

jamesward opened this issue Aug 1, 2019 · 5 comments
Labels
type: wiki-documentation A documentation update required on the wiki

Comments

@jamesward
Copy link

Seems like there should be a way to run an individual smoke test but I can't find it. Would be great to have this info in the CONTRIBUTING.adoc file.

@snicoll
Copy link
Member

snicoll commented Aug 1, 2019

@jamesward I am not sure I got that. Do you mean a smoke test module (and all the tests within it) or one particular test class or one particular test within a class?

@snicoll snicoll added the status: waiting-for-feedback We need additional information before we can continue label Aug 1, 2019
@jamesward
Copy link
Author

I'm trying to just run spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-web-static and it appears that I can go into that dir and run ../../../mvnw test but I'm not totally certain if that is right.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Aug 1, 2019
@jamesward
Copy link
Author

I'm also trying to figure out how to run the smoke test from my IDE so I can do some debugging.

@snicoll
Copy link
Member

snicoll commented Aug 1, 2019

Thanks for the feedback. The smoke tests are quite specific as they're invoked in a particular way and are not declared as individual modules.

If you don't have maven installed or want to rely on the wrapper, that command works yes. Here is more details about how to use it with sub-modules.

If you want to import a smoke test in IntelliJ IDEA, you can right click on the pom of the project you're interested in (i.e. spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-web-static/pom.xml) and invoke "Add as a Maven project". I can only assume other IDEs have a similar feature.

We can improve the current contributing page but I am not sure about what you're asking as it falls more in the documentation of the maven wrapper or the IDE you are using IMO. Flagging for team attention to see what the rest of the team thinks.

@snicoll snicoll added the for: team-attention An issue we'd like other members of the team to review label Aug 1, 2019
@jamesward
Copy link
Author

Thanks for the quick response. What I was hoping I could do is to run a smoke test like I run a project's unit tests. That would enable me to pick a specific one to run, make change to the underlying stuff to retest, and debug into the underlying stuff via an IDE if needed.

@philwebb philwebb added type: documentation A documentation update and removed for: team-attention An issue we'd like other members of the team to review labels Aug 23, 2019
@philwebb philwebb added this to the 2.2.x milestone Aug 23, 2019
@philwebb philwebb changed the title Run a Smoke Test Document how to import and run a smoke tests in the IDE Aug 23, 2019
@wilkinsona wilkinsona added type: wiki-documentation A documentation update required on the wiki and removed type: documentation A documentation update status: feedback-provided Feedback has been provided labels Sep 16, 2019
@philwebb philwebb modified the milestones: 2.2.x, General Backlog Sep 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: wiki-documentation A documentation update required on the wiki
Projects
None yet
Development

No branches or pull requests

5 participants