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
When running the following commands to build the code, the entire testing suite is also executed. See the *Testing* section for configuration instructions prior to running the tests.
24
23
25
-
To build the code using the gradle wrapper in Unix run:
24
+
To build the code using the gradle wrapper in Unix run:
26
25
```
27
26
> ./gradlew clean build
28
27
```
29
-
To build the code using the gradle wrapper in Windows run:
28
+
To build the code using the gradle wrapper in Windows run:
30
29
```
31
30
> gradlew clean build
32
31
```
33
-
To build the code using the environment gradle run:
32
+
To build the code using the environment gradle run:
34
33
```
35
34
> gradle clean build
36
35
```
@@ -40,7 +39,7 @@ To build the code without running the tests, add to the "clean build" command th
40
39
```
41
40
42
41
### Testing
43
-
To run *all* tests:
42
+
To run *all* tests:
44
43
```
45
44
> ./gradlew clean test
46
45
```
@@ -74,8 +73,8 @@ To run *all* tests:
74
73
75
74
#### Pip tests
76
75
* Add Python and pip executables to the system search path (PATH environment variable).
77
-
* Pip tests must run inside a clean pip-environment. Create a virtual environment and provide its path using the 'BITESTS_ARTIFACTORY_PIP_ENV' variable.
78
-
When running on a Windows machine, provide the path to the 'Scripts' directory.
76
+
* Pip tests must run inside a clean pip-environment. Create a virtual environment and provide its path using the 'BITESTS_ARTIFACTORY_PIP_ENV' variable.
77
+
When running on a Windows machine, provide the path to the 'Scripts' directory.
79
78
When running on a unix machine, provide the path to the 'bin' directory.
80
79
```
81
80
> python -m venv buildinfo-tests-env
@@ -89,6 +88,20 @@ When running on a unix machine, provide the path to the 'bin' directory.
89
88
> ./gradlew clean build-info-extractor-nuget:test
90
89
```
91
90
91
+
#### Docker tests
92
+
* Docker tests run only on Linux/mac.
93
+
* In addition to the general environment variables required for running the tests, you must set the following environment variables, required for the docker tests:
* Before running the tests, please make sure you have a local docker repository named *build-info-tests-docker* in Artifactory.
104
+
92
105
### Testing on Artifactory OSS
93
106
When testing with an instance of Artifactory OSS, only supported tests are for the build-info-gradle-extractor.
94
107
@@ -103,7 +116,7 @@ To run Gradle tests on Artifactory OSS:
103
116
* Create 3 Gradle repositories:
104
117
* Local repository: `build-info-tests-gradle-local`
105
118
* Remote repository to jcenter: `build-info-tests-gradle-remote`
106
-
* Virtual repository containing both the remote and local: `build-info-tests-gradle-virtual`
119
+
* Virtual repository containing both the remote and local: `build-info-tests-gradle-virtual`
107
120
* Run tests `./gradlew build-info-extractor-gradle:test`
108
121
109
122
## Build Info json format
@@ -140,7 +153,7 @@ To run Gradle tests on Artifactory OSS:
140
153
}],
141
154
"licenseControl" : { // Artifactory License Control information
142
155
"runChecks" : true, // Artifactory will run automatic license scanning after the build is complete (true/false)
143
-
"includePublishedArtifacts" : true, // Should Artifactory run license checks on the build artifacts, in addition to the build dependecies (true/false)
156
+
"includePublishedArtifacts" : true, // Should Artifactory run license checks on the build artifacts, in addition to the build dependecies (true/false)
144
157
"autoDiscover" : true, // Should Artifactory auto discover licenses (true/false)
145
158
"scopesList" : "", // A space-separated list of dependency scopes/configurations to run license violation checks on. If left empty all dependencies from all scopes will be checked.
146
159
"licenseViolationsRecipientsList" : "" // Emails of recipients that should be notified of license violations in the build info (space-separated list)
@@ -151,7 +164,7 @@ To run Gradle tests on Artifactory OSS:
151
164
"minimumBuildDate" : 1407345768020, // Earliest build date to store in Artifactory
152
165
"buildNumbersNotToBeDiscarded" : [ ] // List of build numbers that should not be removed from Artifactory
153
166
},
154
-
/* List of build modules */
167
+
/* List of build modules */
155
168
"modules" : [ { // The build's first module
156
169
"properties" : { // Module properties
157
170
"project.build.sourceEncoding" : "UTF-8"
@@ -182,7 +195,7 @@ To run Gradle tests on Artifactory OSS:
182
195
"project.build.sourceEncoding" : "UTF-8"
183
196
},
184
197
"id" : "org.jfrog.test:multi3:4.2-SNAPSHOT", // Module ID
0 commit comments