]> source.dussan.org Git - sonarqube.git/blob
a50a09d702e1196a403c8aff848efe27b9a8aa9a
[sonarqube.git] /
1 // Jest Snapshot v1, https://goo.gl/fbAQLP
2
3 exports[`should render correctly for "linux" 1`] = `
4 <div>
5   <h4
6     className="big-spacer-top spacer-bottom"
7   >
8     onboarding.analysis.sq_scanner.execute
9   </h4>
10   <InstanceMessage
11     message="onboarding.analysis.sq_scanner.execute.text"
12   >
13     <Component />
14   </InstanceMessage>
15   <CodeSnippet
16     isOneLine={false}
17     snippet={
18       [
19         "sonar-scanner",
20         "-Dsonar.projectKey=projectKey",
21         "-Dsonar.sources=.",
22         undefined,
23         "-Dsonar.host.url=host",
24         "-Dsonar.login=token",
25       ]
26     }
27   />
28   <p
29     className="big-spacer-top markdown"
30   >
31     <FormattedMessage
32       defaultMessage="onboarding.analysis.sq_scanner.docs"
33       id="onboarding.analysis.sq_scanner.docs"
34       values={
35         {
36           "link": <withAppStateContext(DocLink)
37             to="/analyzing-source-code/scanners/sonarscanner/"
38           >
39             onboarding.analysis.sq_scanner.docs_link
40           </withAppStateContext(DocLink)>,
41         }
42       }
43     />
44   </p>
45   <DoneNextSteps
46     component={
47       {
48         "breadcrumbs": [],
49         "key": "projectKey",
50         "name": "MyProject",
51         "qualifier": "TRK",
52         "qualityGate": {
53           "isDefault": true,
54           "key": "30",
55           "name": "Sonar way",
56         },
57         "qualityProfiles": [
58           {
59             "deleted": false,
60             "key": "my-qp",
61             "language": "ts",
62             "name": "Sonar way",
63           },
64         ],
65         "tags": [],
66       }
67     }
68   />
69 </div>
70 `;
71
72 exports[`should render correctly for "mac" 1`] = `
73 <div>
74   <h4
75     className="big-spacer-top spacer-bottom"
76   >
77     onboarding.analysis.sq_scanner.execute
78   </h4>
79   <InstanceMessage
80     message="onboarding.analysis.sq_scanner.execute.text"
81   >
82     <Component />
83   </InstanceMessage>
84   <CodeSnippet
85     isOneLine={false}
86     snippet={
87       [
88         "sonar-scanner",
89         "-Dsonar.projectKey=projectKey",
90         "-Dsonar.sources=.",
91         undefined,
92         "-Dsonar.host.url=host",
93         "-Dsonar.login=token",
94       ]
95     }
96   />
97   <p
98     className="big-spacer-top markdown"
99   >
100     <FormattedMessage
101       defaultMessage="onboarding.analysis.sq_scanner.docs"
102       id="onboarding.analysis.sq_scanner.docs"
103       values={
104         {
105           "link": <withAppStateContext(DocLink)
106             to="/analyzing-source-code/scanners/sonarscanner/"
107           >
108             onboarding.analysis.sq_scanner.docs_link
109           </withAppStateContext(DocLink)>,
110         }
111       }
112     />
113   </p>
114   <DoneNextSteps
115     component={
116       {
117         "breadcrumbs": [],
118         "key": "projectKey",
119         "name": "MyProject",
120         "qualifier": "TRK",
121         "qualityGate": {
122           "isDefault": true,
123           "key": "30",
124           "name": "Sonar way",
125         },
126         "qualityProfiles": [
127           {
128             "deleted": false,
129             "key": "my-qp",
130             "language": "ts",
131             "name": "Sonar way",
132           },
133         ],
134         "tags": [],
135       }
136     }
137   />
138 </div>
139 `;
140
141 exports[`should render correctly for "win" 1`] = `
142 <div>
143   <h4
144     className="big-spacer-top spacer-bottom"
145   >
146     onboarding.analysis.sq_scanner.execute
147   </h4>
148   <InstanceMessage
149     message="onboarding.analysis.sq_scanner.execute.text"
150   >
151     <Component />
152   </InstanceMessage>
153   <CodeSnippet
154     isOneLine={true}
155     snippet={
156       [
157         "sonar-scanner.bat",
158         "-D"sonar.projectKey=projectKey"",
159         "-D"sonar.sources=."",
160         undefined,
161         "-D"sonar.host.url=host"",
162         "-D"sonar.login=token"",
163       ]
164     }
165   />
166   <p
167     className="big-spacer-top markdown"
168   >
169     <FormattedMessage
170       defaultMessage="onboarding.analysis.sq_scanner.docs"
171       id="onboarding.analysis.sq_scanner.docs"
172       values={
173         {
174           "link": <withAppStateContext(DocLink)
175             to="/analyzing-source-code/scanners/sonarscanner/"
176           >
177             onboarding.analysis.sq_scanner.docs_link
178           </withAppStateContext(DocLink)>,
179         }
180       }
181     />
182   </p>
183   <DoneNextSteps
184     component={
185       {
186         "breadcrumbs": [],
187         "key": "projectKey",
188         "name": "MyProject",
189         "qualifier": "TRK",
190         "qualityGate": {
191           "isDefault": true,
192           "key": "30",
193           "name": "Sonar way",
194         },
195         "qualityProfiles": [
196           {
197             "deleted": false,
198             "key": "my-qp",
199             "language": "ts",
200             "name": "Sonar way",
201           },
202         ],
203         "tags": [],
204       }
205     }
206   />
207 </div>
208 `;
209
210 exports[`should render correctly for cfamily 1`] = `
211 <div>
212   <h4
213     className="big-spacer-top spacer-bottom"
214   >
215     onboarding.analysis.sq_scanner.execute
216   </h4>
217   <InstanceMessage
218     message="onboarding.analysis.sq_scanner.execute.text"
219   >
220     <Component />
221   </InstanceMessage>
222   <CodeSnippet
223     isOneLine={false}
224     snippet={
225       [
226         "sonar-scanner",
227         "-Dsonar.projectKey=projectKey",
228         "-Dsonar.sources=.",
229         "-Dsonar.cfamily.build-wrapper-output=bw-output",
230         "-Dsonar.host.url=host",
231         "-Dsonar.login=token",
232       ]
233     }
234   />
235   <p
236     className="big-spacer-top markdown"
237   >
238     <FormattedMessage
239       defaultMessage="onboarding.analysis.sq_scanner.docs"
240       id="onboarding.analysis.sq_scanner.docs"
241       values={
242         {
243           "link": <withAppStateContext(DocLink)
244             to="/analyzing-source-code/scanners/sonarscanner/"
245           >
246             onboarding.analysis.sq_scanner.docs_link
247           </withAppStateContext(DocLink)>,
248         }
249       }
250     />
251   </p>
252   <DoneNextSteps
253     component={
254       {
255         "breadcrumbs": [],
256         "key": "projectKey",
257         "name": "MyProject",
258         "qualifier": "TRK",
259         "qualityGate": {
260           "isDefault": true,
261           "key": "30",
262           "name": "Sonar way",
263         },
264         "qualityProfiles": [
265           {
266             "deleted": false,
267             "key": "my-qp",
268             "language": "ts",
269             "name": "Sonar way",
270           },
271         ],
272         "tags": [],
273       }
274     }
275   />
276 </div>
277 `;
278
279 exports[`should render correctly for remote execution 1`] = `
280 <div>
281   <h4
282     className="big-spacer-top spacer-bottom"
283   >
284     onboarding.analysis.sq_scanner.execute
285   </h4>
286   <InstanceMessage
287     message="onboarding.analysis.sq_scanner.execute.text"
288   >
289     <Component />
290   </InstanceMessage>
291   <CodeSnippet
292     isOneLine={false}
293     snippet={
294       [
295         "sonar-scanner",
296         "-Dsonar.projectKey=projectKey",
297         "-Dsonar.sources=.",
298         undefined,
299         "-Dsonar.host.url=host",
300         undefined,
301       ]
302     }
303   />
304   <p
305     className="big-spacer-top markdown"
306   >
307     <FormattedMessage
308       defaultMessage="onboarding.analysis.sq_scanner.docs"
309       id="onboarding.analysis.sq_scanner.docs"
310       values={
311         {
312           "link": <withAppStateContext(DocLink)
313             to="/analyzing-source-code/scanners/sonarscanner/"
314           >
315             onboarding.analysis.sq_scanner.docs_link
316           </withAppStateContext(DocLink)>,
317         }
318       }
319     />
320   </p>
321   <DoneNextSteps
322     component={
323       {
324         "breadcrumbs": [],
325         "key": "projectKey",
326         "name": "MyProject",
327         "qualifier": "TRK",
328         "qualityGate": {
329           "isDefault": true,
330           "key": "30",
331           "name": "Sonar way",
332         },
333         "qualityProfiles": [
334           {
335             "deleted": false,
336             "key": "my-qp",
337             "language": "ts",
338             "name": "Sonar way",
339           },
340         ],
341         "tags": [],
342       }
343     }
344   />
345 </div>
346 `;