You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For running the tests against an existing instance of Eclipse or JBDS use the following command
106
+
107
+
$ mvn clean verify -Dtest.installBase=...
108
+
109
+
**Note:**_Some tests require a specific configuration (runtime, credentials, ...). Please see the appropriate readme file of a specific [component](#listofcomponents)._
110
+
111
+
To run a test with a configuration file use
112
+
113
+
$ mvn clean verify -Drd.config=...
114
+
115
+
<aname="runtestsfromide"/>
116
+
## Run tests from IDE
117
+
118
+
The test execution can be affected by mouse moving/clicking. That's why we recommend to run tests in another display (vnc, xephyr, ...).
119
+
120
+
Prepare your environment as follows
40
121
41
-
If you just want to check if things compiles/builds you can run:
122
+
1. Install JBDS 9 (Eclipse Mars for Java EE Developers) and JBDS-IS 9.x (JBTIS 4.3.x)
123
+
2. Install RedDeer from http://download.jboss.org/jbosstools/updates/stable/mars/core/reddeer/1.0.0
124
+
3. Install SWTBot API (except Nebula Gallery) from http://download.eclipse.org/technology/swtbot/releases/latest
125
+
4. Install Tycho plugin from http://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-tycho/0.8.0/N/LATEST
126
+
5. Import JBTIS plugins as an existing maven project
127
+
6. Each test plugin contains a launcher which is available via Run > Run Configurations...
128
+
7. In Run Configuration you can set the display (tab Environment) and additional configurations (tab Arguments)
42
129
43
-
$ mvn clean verify -DskipTest=true
130
+
**Note:**_Some tests require a specific configuration (runtime, credentials, ...). Please see the appropriate readme file of a specific [component](#listofcomponents)._
44
131
45
-
But *do not* push changes without having the new and existing unit tests pass!
132
+
<aname="listofcomponents"/>
133
+
## List of components
46
134
47
-
For running the tests against an existing instance of Eclipse or JBDS use the following
_JBoss Tools Integration Stack Tests_ is open source, and we welcome anybody that wants to
54
149
participate and contribute!
55
150
56
151
If you want to fix a bug or make any changes, please do following:
57
152
58
-
1.log an issue describing the bug or new feature here on [GitHub](https://github.com/jbosstools/jbosstools-integration-stack-tests/issues/new)
59
-
2.update your local master branch
153
+
1.Log an issue describing the bug or new feature here on [GitHub](https://github.com/jbosstools/jbosstools-integration-stack-tests/issues/new)
154
+
2.Update your local master branch
60
155
61
156
```
62
157
$ git checkout master # switches to the 'master' branch
63
158
$ git pull upstream master # fetches all 'upstream' changes and merges 'upstream/master'
64
159
onto your 'master' branch
65
160
```
66
161
67
-
3.make the changes on a topic branch named with issue number. For example, this command creates a branch for the *#1234* issue:
162
+
3.Make the changes on a topic branch named with issue number. For example, this command creates a branch for the *#1234* issue:
68
163
69
164
```
70
165
$ git checkout -b JBTISTEST-1234
71
166
```
72
167
73
-
4.after you're happy with your changes and a full build (with unit tests) runs successfully, commit your changes on your topic branch (with good comments):
168
+
4.After you're happy with your changes and a full build (with unit tests) runs successfully, commit your changes on your topic branch (with good comments):
74
169
75
170
```
76
171
$ git add <file> # adds new/changed files
77
172
$ git commit # makes a commit from all added files
78
173
```
79
174
80
-
**Note:**We recommend making a comment of the commit with name of the issue on GitHub plus *'#1234' (issue number)*. The issue number in the comment cause that your commit is visible in issue's comments.
175
+
**Note:**_We recommend making a comment of the commit with name of the issue on GitHub plus *'#1234' (issue number)*. The issue number in the comment cause that your commit is visible in issue's comments._
81
176
82
-
5.check for any recent changes that were made in the official repository:
177
+
5.Check for any recent changes that were made in the official repository:
83
178
84
179
```
85
180
$ git checkout master # switches to the 'master' branch
@@ -90,22 +185,22 @@ If you want to fix a bug or make any changes, please do following:
90
185
(i.e., the latest from master will be the new base for your changes)
91
186
```
92
187
93
-
**Note:**If the pull grabbed a lot of changes, you should rerun your build with tests enabled to make sure your changes are still good.
188
+
**Note:**_If the pull grabbed a lot of changes, you should rerun your build with tests enabled to make sure your changes are still good._
94
189
95
-
6.push your topic branch and its changes into your public fork repository:
190
+
6.Push your topic branch and its changes into your public fork repository:
96
191
97
192
```
98
193
$ git push origin JBTISTEST-1234 # pushes your topic branch into your public fork of JBTIS Tests
**Note:** It contains only one Groovy script that links your topic branch on GitHub with the corresponding issue in JBoss Tools Integration Stack Tests repository.
203
+
**Note:** _It contains only one Groovy script that links your topic branch on GitHub with the corresponding issue in JBoss Tools Integration Stack Tests repository._
109
204
110
205
* run the Groovy script
111
206
@@ -116,4 +211,4 @@ If you want to fix a bug or make any changes, please do following:
116
211
issue: 1234 # number of the issue
117
212
```
118
213
119
-
8.check that your issue on GitHub was moved to [Pull Requests](https://github.com/jbosstools/jbosstools-integration-stack-tests/pulls). Then we can review the proposed changes, comment on them, discuss them with you, and if everything is good merge the changes right into the official repository
214
+
8.Check that your issue on GitHub was moved to [Pull Requests](https://github.com/jbosstools/jbosstools-integration-stack-tests/pulls). Then we can review the proposed changes, comment on them, discuss them with you, and if everything is good merge the changes right into the official repository
To run the tests from IDE import the following projects as an existing maven project
41
+
- org.jboss.tools.common.reddeer
42
+
- org.jboss.tools.runtime.reddeer
43
+
- org.jboss.tools.bpel.reddeer
44
+
- org.jboss.tools.bpel.ui.bot.test
24
45
25
-
For importing the project into Eclipse IDE you need:
26
-
27
-
Eclipse Kepler, SWTBot 2.1.1, Red Deer 0.4.0
46
+
Then, open **Run > Run Configurations...** and find the category **RedDeer Test**. Switch to the tab **Arguments** and add a VM argument **-Drd.config=...** if needed.
0 commit comments