-
Notifications
You must be signed in to change notification settings - Fork 50
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
add tests for the struts2-jquery-plugin tags #90
Comments
Did you try to run this with Travis-CI? |
@lukaszlenart What happens here when running the
I currently have no experience with Travis-CI.
I also have no idea what the build server is that this project uses. |
@lukaszlenart |
Cool, it passes so it's a way to go 💯 |
@lukaszlenart
Am I correct in assuming that only someone with admin rights can add the project to Travis-CI? Thx in advance for the info. |
Yes and yes, only repo owner can setup build on TravisCI but that's easy :) |
links to work in progress: |
Did you open a PR? Could you add Travis badge?
|
@lukaszlenart From the information i can find about the Travis badge, i conclude the following:
|
I think starting even with one test is a good idea, tests for other tags can be added step-by-step with additional PRs :) Regarding the badge: right, I was too eager :) |
@lukaszlenart I will just add the last test i wanted to add for the Thx for the advice so far concerning |
I setup travis for the struts2 jquery plugin: Is there anything I need to care about it? |
@jogep Now we should easily spot when a pull request or commit is made that breaks the build.
|
@sdutry Only problem what I can see that we currently not developing against master branch. Usually I create for each new release a new branch which is merged into master when the release is finished. Maybe we need to change the process here. |
@jogep |
Great can we merge this in latest release/4.0.3 branch? |
@jogep Give me a minute to figure out what exactly needs to be done. |
@jogep |
#90 - added tests for the sj:a and the sj:div tag
checklist for tags to add tests for
all these checkboxes currently are things for which i should be able to find a way to test. If there's more suggestions or ideas for tests, just post a comment below. |
My initial setup for these tests did not have support for drag-and-drop features (like dragging a slider). Initial setup:
My workaround for this was to use the This however has some implications
So i was wondering the following:
I would appreciate your input for this. |
@sdutry I like the idea of seperate profile for this tests. Can this profile be chosen as default for Travis-CI? |
@jogep required steps:
What i was wondering was the following:
|
Looking further into this i'll try to set it up with the |
@jogep @lukaszlenart I also added categories to the tests in order to distinguish which test to run when.
I've added the both of you as reviewers to this pull request. In case of any of the list below, please add a comment (here or in the pull request) and i'll see what can be done:
Thanks in advance. |
(sorry but I was off for few days) The idea with a dedicated profile just for |
@sdutry Have you seen this https://github.com/klieber/phantomjs-maven-plugin ? |
@aleksandr-m I did not find a way to have it working independent of the environment you're on (yet).
Should you have an example of a working setup feel free to show me. Feel free to make a pull request with the adjusted setup. If you want to play with it on a personal fork (and possibly branch inside the fork) first, all you need to do is enable the forked repository on travis and it will run the tests for you on each commit (pushed to github). |
Seeing that it's usualy difficult and time-consuming to test every single tag in isolation, I thought it might be a good idea to have some integration-tests for the tags.
This way, it should be easier to detect problems when they occur.
I've made a small POC for a simple case, illustrating that it's possible.
struts2-jquery-tests
Edit:
this assumes to have struts2-jquery version 4.0.2-SNAPSHOT installedmvn verify
The eventual idea would be to:
If there's problems you can think off now for this approach, please let me know.
Please let me know your thoughts on this, so that i know if i should put effort in it or not.
The text was updated successfully, but these errors were encountered: