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

#90 - added tests for the sj:a and the sj:div tag #93

Merged
merged 19 commits into from
Jan 8, 2017
Merged

Conversation

sdutry
Copy link
Contributor

@sdutry sdutry commented Dec 26, 2016

#90
This is a first step towards adding tests for all the struts2-jquery-plugin tags.

It would be nice if we had the Travic-CI integration set-up. (as suggested by @lukaszlenart )
The only person who can activate this would be the project owner.

With Travic-CI set-up there would be a build automaticaly started whenever a commit or pull-request is done, running the tests and showing when it would break something (that's currently being tested for).

@sdutry sdutry changed the title #90 - added tests for the sj:a tag #90 - added tests for the sj:a and the sj:div tag Dec 27, 2016
language: java
jdk:
- oraclejdk8
script: "mvn verify"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you use verify? Because of maven-failsafe-plugin?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because of the maven-failsafe-plugin indeed.

The plugin is bound to the goals integration-test and verify

The required jetty-server for these tests:

  • starts during pre-integration-test
  • stops during post-integration-test

If you have a better solution or preferred alternative, please let me know so i can adjust accordingly.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, I just wanted be sure that I understand. This is cool 👍

@@ -92,6 +92,7 @@
<module>struts2-jquery-grid-showcase</module>
<module>struts2-jquery-mobile-showcase</module>
<module>struts2-jquery-archetypes</module>
<module>struts2-jquery-plugin-tests</module>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about naming this module struts2-jquery-integration-tests or something like that?

Copy link
Contributor Author

@sdutry sdutry Dec 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will rename this as per your suggestion to struts2-jquery-integration-tests

What would you suggest about future tests concerning different modules (eg: struts2-jquery-tree-plugin) ?
Which would you prefer:

  • add those tests to the struts2-jquery-integration-tests module
  • seperate module named according to the tested module (eg: struts2-jquery-tree-integration-tests)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks :)

Regarding additional tests & modules, I think for now it's ok to put them in struts2-jquery-integration-tests - it will simplify configuration & maintenance burden :)

@lukaszlenart
Copy link
Member

@jogep do you have any objections to merge this PR? It looks good to me and @sdutry did a great work with setting this up 💯

@sdutry sdutry changed the base branch from release/4.0.2 to release/4.0.3 January 8, 2017 12:31
@sdutry
Copy link
Contributor Author

sdutry commented Jan 8, 2017

@jogep
this is now using release/4.0.3 as target for pull request.

I also updated the versions of the project and modules to 4.0.3-SNAPSHOT

please confirm again that this pull request may be merged, or feel free to merge it yourself.

If you still see problems with it, please let me know and i'll try to fix them asap

@jogep jogep merged commit 31d74ff into struts-community-plugins:release/4.0.3 Jan 8, 2017
@jogep jogep added this to the 4.0.3 milestone Jan 8, 2017
@jogep
Copy link
Contributor

jogep commented Jan 8, 2017

@sdutry I merged it to the 4.0.3 branch. Thank you for this contribution!

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

Successfully merging this pull request may close these issues.

3 participants