codecraftai-integration-runtime 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- ccai/integrationruntime/__init__.py +27 -0
- ccai/integrationruntime/entrypoints.py +59 -0
- ccai/integrationruntime/initialize.py +100 -0
- ccai/integrationruntime/integratedtestjob.py +100 -0
- ccai/integrationruntime/integrationruntimedefaulttypefactory.py +51 -0
- ccai/integrationruntime/py.typed +0 -0
- ccai/integrationruntime/results/__init__.py +13 -0
- ccai/integrationruntime/results/concentrators/__init__.py +13 -0
- ccai/integrationruntime/results/concentrators/progressconcentratorservice.py +526 -0
- ccai/integrationruntime/results/recorders/__init__.py +22 -0
- ccai/integrationruntime/results/recorders/integrationjsonresultrecorder.py +126 -0
- ccai/integrationruntime/results/recorders/streamingresultrecorder.py +271 -0
- ccai/integrationruntime/results/streaming/__init__.py +25 -0
- ccai/integrationruntime/results/streaming/resultstreamer.py +581 -0
- ccai/integrationruntime/runtimeoutputcontext.py +68 -0
- ccai/integrationruntime/runtimerunmetadata.py +165 -0
- ccai/integrationruntime/templates/v2/static/images/test-report-banner-background-image.png +0 -0
- ccai/integrationruntime/templates/v2/static/javascript/d3.v7.js +20625 -0
- ccai/integrationruntime/templates/v2/static/javascript/icon-components.js +510 -0
- ccai/integrationruntime/templates/v2/static/javascript/mojo-components.js +1417 -0
- ccai/integrationruntime/templates/v2/static/javascript/prism.js +1789 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-accessibility.js +704 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-comparison.js +1287 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-components.js +3499 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-helpers.js +426 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary-responsive.js +493 -0
- ccai/integrationruntime/templates/v2/static/javascript/testsummary.js +1128 -0
- ccai/integrationruntime/templates/v2/static/javascript/webcomponent-helpers.js +112 -0
- ccai/integrationruntime/templates/v2/static/styles/branding-theme.css +144 -0
- ccai/integrationruntime/templates/v2/static/styles/icon-styles.css +9 -0
- ccai/integrationruntime/templates/v2/static/styles/mojo-components.css +384 -0
- ccai/integrationruntime/templates/v2/static/styles/prism.css +143 -0
- ccai/integrationruntime/templates/v2/static/styles/tabs-responsive.css +186 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-accessibility.css +413 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-comparison.css +746 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary-responsive.css +679 -0
- ccai/integrationruntime/templates/v2/static/styles/testsummary.css +1631 -0
- ccai/integrationruntime/templates/v2/tabs/tab-data.html +870 -0
- ccai/integrationruntime/templates/v2/tabs/tab-images.html +110 -0
- ccai/integrationruntime/templates/v2/tabs/tab-logs.html +594 -0
- ccai/integrationruntime/templates/v2/tabs/tab-sounds.html +112 -0
- ccai/integrationruntime/templates/v2/tabs/tab-timeseries.html +368 -0
- ccai/integrationruntime/templates/v2/tabs/tab-videos.html +372 -0
- ccai/integrationruntime/templates/v2/testsummary.html +81 -0
- codecraftai_integration_runtime-1.3.0.dist-info/METADATA +73 -0
- codecraftai_integration_runtime-1.3.0.dist-info/RECORD +48 -0
- codecraftai_integration_runtime-1.3.0.dist-info/WHEEL +4 -0
- codecraftai_integration_runtime-1.3.0.dist-info/licenses/LICENSE.md +204 -0
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!--
|
|
4
|
+
__author__ = "Myron Walker"
|
|
5
|
+
__copyright__ = "Copyright 2025, Code Craft AI LLC"
|
|
6
|
+
|
|
7
|
+
Video Artifact Viewer Tab
|
|
8
|
+
|
|
9
|
+
This tab page displays video artifacts (MP4, WebM, OGG) from test execution.
|
|
10
|
+
Videos are displayed with playback controls and can be expanded to full screen.
|
|
11
|
+
-->
|
|
12
|
+
<head>
|
|
13
|
+
<title>Videos</title>
|
|
14
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
|
|
15
|
+
|
|
16
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-helpers.js"></script>
|
|
17
|
+
<link rel="stylesheet" href="/static/v2/styles/tabs-responsive.css" ></link>
|
|
18
|
+
|
|
19
|
+
<style>
|
|
20
|
+
* {
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.page-style {
|
|
25
|
+
margin: 0px;
|
|
26
|
+
padding: 10px;
|
|
27
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.page-header {
|
|
32
|
+
display: flex;
|
|
33
|
+
justify-content: space-between;
|
|
34
|
+
align-items: center;
|
|
35
|
+
margin-bottom: 15px;
|
|
36
|
+
padding-bottom: 10px;
|
|
37
|
+
border-bottom: 1px solid #ddd;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.page-title {
|
|
41
|
+
margin: 0;
|
|
42
|
+
font-size: 1.5em;
|
|
43
|
+
color: #333;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.video-grid {
|
|
47
|
+
display: grid;
|
|
48
|
+
grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr));
|
|
49
|
+
gap: 20px;
|
|
50
|
+
width: 100%;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.video-container {
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
border: 1px solid #ddd;
|
|
57
|
+
border-radius: 8px;
|
|
58
|
+
overflow: hidden;
|
|
59
|
+
background-color: #f9f9f9;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.video-header {
|
|
63
|
+
display: flex;
|
|
64
|
+
justify-content: space-between;
|
|
65
|
+
align-items: center;
|
|
66
|
+
padding: 10px 15px;
|
|
67
|
+
background-color: #f5f5f5;
|
|
68
|
+
border-bottom: 1px solid #ddd;
|
|
69
|
+
flex-wrap: wrap;
|
|
70
|
+
gap: 8px;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.video-filename {
|
|
74
|
+
font-weight: bold;
|
|
75
|
+
color: #333;
|
|
76
|
+
word-break: break-all;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.video-controls {
|
|
80
|
+
display: flex;
|
|
81
|
+
gap: 8px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.video-btn {
|
|
85
|
+
padding: 8px 12px;
|
|
86
|
+
border: 1px solid #ccc;
|
|
87
|
+
border-radius: 4px;
|
|
88
|
+
background-color: #fff;
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
font-size: 14px;
|
|
91
|
+
color: #333;
|
|
92
|
+
min-width: 44px;
|
|
93
|
+
min-height: 44px;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
.video-btn:hover {
|
|
97
|
+
background-color: #e9e9e9;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.video-wrapper {
|
|
101
|
+
position: relative;
|
|
102
|
+
background-color: #000;
|
|
103
|
+
width: 100%;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.video-wrapper video {
|
|
107
|
+
width: 100%;
|
|
108
|
+
height: auto;
|
|
109
|
+
display: block;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.video-meta {
|
|
113
|
+
padding: 8px 15px;
|
|
114
|
+
font-size: 12px;
|
|
115
|
+
color: #666;
|
|
116
|
+
background-color: #f5f5f5;
|
|
117
|
+
border-top: 1px solid #ddd;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.no-videos {
|
|
121
|
+
padding: 40px;
|
|
122
|
+
text-align: center;
|
|
123
|
+
color: #666;
|
|
124
|
+
grid-column: 1 / -1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.loading {
|
|
128
|
+
padding: 40px;
|
|
129
|
+
text-align: center;
|
|
130
|
+
color: #666;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/* Fullscreen styles */
|
|
134
|
+
.video-container.fullscreen {
|
|
135
|
+
position: fixed;
|
|
136
|
+
top: 0;
|
|
137
|
+
left: 0;
|
|
138
|
+
width: 100vw;
|
|
139
|
+
height: 100vh;
|
|
140
|
+
z-index: 9999;
|
|
141
|
+
border-radius: 0;
|
|
142
|
+
background-color: #000;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.video-container.fullscreen .video-wrapper {
|
|
146
|
+
flex: 1;
|
|
147
|
+
display: flex;
|
|
148
|
+
align-items: center;
|
|
149
|
+
justify-content: center;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.video-container.fullscreen .video-wrapper video {
|
|
153
|
+
max-height: calc(100vh - 100px);
|
|
154
|
+
width: auto;
|
|
155
|
+
max-width: 100%;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.video-container.fullscreen .video-header {
|
|
159
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
160
|
+
border-bottom: 1px solid #333;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
.video-container.fullscreen .video-filename {
|
|
164
|
+
color: #fff;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.video-container.fullscreen .video-meta {
|
|
168
|
+
background-color: rgba(0, 0, 0, 0.8);
|
|
169
|
+
border-top: 1px solid #333;
|
|
170
|
+
color: #ccc;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/* Responsive adjustments */
|
|
174
|
+
@media (max-width: 480px) {
|
|
175
|
+
.video-grid {
|
|
176
|
+
grid-template-columns: 1fr;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.video-header {
|
|
180
|
+
padding: 8px 10px;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.video-filename {
|
|
184
|
+
font-size: 14px;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.video-btn {
|
|
188
|
+
padding: 6px 10px;
|
|
189
|
+
font-size: 12px;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
</style>
|
|
193
|
+
|
|
194
|
+
<script type="text/javascript">
|
|
195
|
+
// Supported video file extensions
|
|
196
|
+
const VIDEO_EXTENSIONS = ["mp4", "webm", "ogg", "mov", "avi"];
|
|
197
|
+
|
|
198
|
+
// Global state
|
|
199
|
+
let g_videos = [];
|
|
200
|
+
|
|
201
|
+
/**
|
|
202
|
+
* Fetch video files from the catalog
|
|
203
|
+
*/
|
|
204
|
+
async function fetch_video_files() {
|
|
205
|
+
try {
|
|
206
|
+
const catalog = await fetch_json("catalog.json");
|
|
207
|
+
if (!catalog || !catalog.files) {
|
|
208
|
+
return [];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
return catalog.files.filter(filename => {
|
|
212
|
+
const ext = filename.split('.').pop().toLowerCase();
|
|
213
|
+
return VIDEO_EXTENSIONS.includes(ext);
|
|
214
|
+
});
|
|
215
|
+
} catch (err) {
|
|
216
|
+
console.error("Failed to load catalog:", err);
|
|
217
|
+
return [];
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* Format file size for display
|
|
223
|
+
*/
|
|
224
|
+
function formatFileSize(bytes) {
|
|
225
|
+
if (bytes === 0) return '0 Bytes';
|
|
226
|
+
const k = 1024;
|
|
227
|
+
const sizes = ['Bytes', 'KB', 'MB', 'GB'];
|
|
228
|
+
const i = Math.floor(Math.log(bytes) / Math.log(k));
|
|
229
|
+
return parseFloat((bytes / Math.pow(k, i)).toFixed(2)) + ' ' + sizes[i];
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Format duration for display
|
|
234
|
+
*/
|
|
235
|
+
function formatDuration(seconds) {
|
|
236
|
+
if (isNaN(seconds) || seconds === Infinity) return '--:--';
|
|
237
|
+
const mins = Math.floor(seconds / 60);
|
|
238
|
+
const secs = Math.floor(seconds % 60);
|
|
239
|
+
return `${mins}:${secs.toString().padStart(2, '0')}`;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Toggle fullscreen mode for a video container
|
|
244
|
+
*/
|
|
245
|
+
function toggleFullscreen(index) {
|
|
246
|
+
const container = document.getElementById(`video-container-${index}`);
|
|
247
|
+
if (container.classList.contains('fullscreen')) {
|
|
248
|
+
container.classList.remove('fullscreen');
|
|
249
|
+
document.body.style.overflow = '';
|
|
250
|
+
} else {
|
|
251
|
+
container.classList.add('fullscreen');
|
|
252
|
+
document.body.style.overflow = 'hidden';
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
/**
|
|
257
|
+
* Download a video file
|
|
258
|
+
*/
|
|
259
|
+
function downloadVideo(filename) {
|
|
260
|
+
const link = document.createElement('a');
|
|
261
|
+
link.href = filename;
|
|
262
|
+
link.download = filename;
|
|
263
|
+
document.body.appendChild(link);
|
|
264
|
+
link.click();
|
|
265
|
+
document.body.removeChild(link);
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* Update video metadata display when metadata is loaded
|
|
270
|
+
*/
|
|
271
|
+
function onVideoMetadataLoaded(videoEl, index) {
|
|
272
|
+
const metaEl = document.getElementById(`video-meta-${index}`);
|
|
273
|
+
if (metaEl && videoEl) {
|
|
274
|
+
const duration = formatDuration(videoEl.duration);
|
|
275
|
+
const width = videoEl.videoWidth;
|
|
276
|
+
const height = videoEl.videoHeight;
|
|
277
|
+
metaEl.textContent = `Duration: ${duration} | Resolution: ${width}x${height}`;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* Create a video container element
|
|
283
|
+
*/
|
|
284
|
+
function createVideoContainer(filename, index) {
|
|
285
|
+
const container = document.createElement('div');
|
|
286
|
+
container.className = 'video-container';
|
|
287
|
+
container.id = `video-container-${index}`;
|
|
288
|
+
|
|
289
|
+
container.innerHTML = `
|
|
290
|
+
<div class="video-header">
|
|
291
|
+
<span class="video-filename">${filename}</span>
|
|
292
|
+
<div class="video-controls">
|
|
293
|
+
<button class="video-btn" onclick="toggleFullscreen(${index})" title="Toggle Fullscreen">⛶</button>
|
|
294
|
+
<button class="video-btn" onclick="downloadVideo('${filename}')" title="Download">⬇</button>
|
|
295
|
+
</div>
|
|
296
|
+
</div>
|
|
297
|
+
<div class="video-wrapper">
|
|
298
|
+
<video
|
|
299
|
+
controls
|
|
300
|
+
preload="metadata"
|
|
301
|
+
onloadedmetadata="onVideoMetadataLoaded(this, ${index})"
|
|
302
|
+
>
|
|
303
|
+
<source src="${filename}" type="video/${filename.split('.').pop().toLowerCase()}">
|
|
304
|
+
Your browser does not support the video tag.
|
|
305
|
+
</video>
|
|
306
|
+
</div>
|
|
307
|
+
<div class="video-meta" id="video-meta-${index}">
|
|
308
|
+
Loading video metadata...
|
|
309
|
+
</div>
|
|
310
|
+
`;
|
|
311
|
+
|
|
312
|
+
return container;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Refresh the video display
|
|
317
|
+
*/
|
|
318
|
+
async function refresh_videos() {
|
|
319
|
+
const containerEl = document.getElementById('video-grid');
|
|
320
|
+
containerEl.innerHTML = '<div class="loading">Loading video files...</div>';
|
|
321
|
+
|
|
322
|
+
const videoFiles = await fetch_video_files();
|
|
323
|
+
|
|
324
|
+
if (videoFiles.length === 0) {
|
|
325
|
+
containerEl.innerHTML = '<div class="no-videos">No video files found in this directory.</div>';
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
containerEl.innerHTML = '';
|
|
330
|
+
g_videos = videoFiles;
|
|
331
|
+
|
|
332
|
+
videoFiles.forEach((filename, index) => {
|
|
333
|
+
const videoEl = createVideoContainer(filename, index);
|
|
334
|
+
containerEl.appendChild(videoEl);
|
|
335
|
+
});
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* Handle escape key to exit fullscreen
|
|
340
|
+
*/
|
|
341
|
+
document.addEventListener('keydown', function(event) {
|
|
342
|
+
if (event.key === 'Escape') {
|
|
343
|
+
const fullscreenEl = document.querySelector('.video-container.fullscreen');
|
|
344
|
+
if (fullscreenEl) {
|
|
345
|
+
fullscreenEl.classList.remove('fullscreen');
|
|
346
|
+
document.body.style.overflow = '';
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
|
|
351
|
+
/**
|
|
352
|
+
* Initialize the page
|
|
353
|
+
*/
|
|
354
|
+
async function initPage() {
|
|
355
|
+
await refresh_videos();
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// Start loading when the page is ready
|
|
359
|
+
document.addEventListener('DOMContentLoaded', initPage);
|
|
360
|
+
</script>
|
|
361
|
+
</head>
|
|
362
|
+
|
|
363
|
+
<body class="page-style">
|
|
364
|
+
<div class="page-header">
|
|
365
|
+
<h3 class="page-title">Videos</h3>
|
|
366
|
+
</div>
|
|
367
|
+
|
|
368
|
+
<div id="video-grid" class="video-grid">
|
|
369
|
+
<div class="loading">Loading...</div>
|
|
370
|
+
</div>
|
|
371
|
+
</body>
|
|
372
|
+
</html>
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<!--
|
|
4
|
+
__author__ = "Myron Walker"
|
|
5
|
+
__copyright__ = "Copyright 2025, Code Craft AI LLC"
|
|
6
|
+
__version__ = "2.0.0"
|
|
7
|
+
-->
|
|
8
|
+
<head>
|
|
9
|
+
<meta charset="UTF-8">
|
|
10
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=5.0, user-scalable=yes">
|
|
11
|
+
<meta name="description" content="Test execution summary report displaying test results, configuration, and artifacts">
|
|
12
|
+
<title>Test Summary Report</title>
|
|
13
|
+
|
|
14
|
+
<link rel="stylesheet" href="/static/v2/styles/prism.css" ></link>
|
|
15
|
+
<link rel="stylesheet" href="/static/v2/styles/branding-theme.css" ></link>
|
|
16
|
+
<link rel="stylesheet" href="/static/v2/styles/icon-styles.css" ></link>
|
|
17
|
+
<link rel="stylesheet" href="/static/v2/styles/mojo-components.css" ></link>
|
|
18
|
+
<link rel="stylesheet" href="/static/v2/styles/testsummary.css" ></link>
|
|
19
|
+
<link rel="stylesheet" href="/static/v2/styles/testsummary-comparison.css" ></link>
|
|
20
|
+
<link rel="stylesheet" href="/static/v2/styles/testsummary-responsive.css" ></link>
|
|
21
|
+
<link rel="stylesheet" href="/static/v2/styles/testsummary-accessibility.css" ></link>
|
|
22
|
+
|
|
23
|
+
<script type="text/javascript" src="/static/v2/javascript/prism.js"></script>
|
|
24
|
+
<script type="text/javascript" src="/static/v2/javascript/webcomponent-helpers.js"></script>
|
|
25
|
+
<script type="text/javascript" src="/static/v2/javascript/icon-components.js"></script>
|
|
26
|
+
<script type="text/javascript" src="/static/v2/javascript/mojo-components.js"></script>
|
|
27
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-helpers.js"></script>
|
|
28
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary.js" ></script>
|
|
29
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-components.js" ></script>
|
|
30
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-comparison.js" ></script>
|
|
31
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-responsive.js" ></script>
|
|
32
|
+
<script type="text/javascript" src="/static/v2/javascript/testsummary-accessibility.js" ></script>
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
<script type="text/javascript">
|
|
37
|
+
function on_page_load() {
|
|
38
|
+
|
|
39
|
+
register_testsummary_components()
|
|
40
|
+
register_comparison_components()
|
|
41
|
+
|
|
42
|
+
refresh_page().then(
|
|
43
|
+
function() {
|
|
44
|
+
console.log("Page loaded");
|
|
45
|
+
// Initialize responsive design after page content is loaded
|
|
46
|
+
init_responsive_design();
|
|
47
|
+
// Update navigation based on visible sections
|
|
48
|
+
update_responsive_navigation();
|
|
49
|
+
// Initialize accessibility features
|
|
50
|
+
init_accessibility();
|
|
51
|
+
}, function(err) {
|
|
52
|
+
console.log("ERROR:\n" + err);
|
|
53
|
+
console.log(err.stack);
|
|
54
|
+
}
|
|
55
|
+
);
|
|
56
|
+
|
|
57
|
+
}
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
</head>
|
|
61
|
+
<body onload="on_page_load()" class="page-style">
|
|
62
|
+
|
|
63
|
+
<header class='section-header' role="banner" aria-label="Test run summary banner">
|
|
64
|
+
<testsummary-banner id="testsummary-banner" aria-label="Test execution summary"></testsummary-banner>
|
|
65
|
+
</header>
|
|
66
|
+
|
|
67
|
+
<main class='section-body ts_vertical_tiling_panel' role="main" aria-label="Test results and configuration">
|
|
68
|
+
<testsummary-configuration id="testsummary-configuration" aria-label="Test configuration section"></testsummary-configuration>
|
|
69
|
+
<testsummary-resultdetail id="testsummary-resultdetail" aria-label="Test result details section"></testsummary-resultdetail>
|
|
70
|
+
<testsummary-comparison id="testsummary-comparison" aria-label="Test comparison section"></testsummary-comparison>
|
|
71
|
+
<testsummary-trend-analysis id="testsummary-trend-analysis" aria-label="Trend analysis section"></testsummary-trend-analysis>
|
|
72
|
+
<testsummary-artifacts id="testsummary-artifacts" aria-label="Test artifacts section"></testsummary-artifacts>
|
|
73
|
+
<testsummary-importfailures id="testsummary-importfailures" aria-label="Import failures section"></testsummary-importfailures>
|
|
74
|
+
</main>
|
|
75
|
+
|
|
76
|
+
<footer class='section-footer' role="contentinfo" aria-label="Files and folders navigation">
|
|
77
|
+
<testsummary-filesandfolders id="testsummary-filesandfolders" aria-label="Output directory navigation"></testsummary-filesandfolders>
|
|
78
|
+
</footer>
|
|
79
|
+
|
|
80
|
+
</body>
|
|
81
|
+
</html>
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: codecraftai-integration-runtime
|
|
3
|
+
Version: 1.3.0
|
|
4
|
+
Summary: Code Craft AI - Integration Runtime
|
|
5
|
+
License-Expression: LicenseRef-CodeCraftAI-Source-Available
|
|
6
|
+
License-File: LICENSE.md
|
|
7
|
+
Keywords: python
|
|
8
|
+
Author: Myron Walker
|
|
9
|
+
Author-email: myron.walker@gmail.com
|
|
10
|
+
Requires-Python: >=3.10,<4.0
|
|
11
|
+
Classifier: Programming Language :: Python :: 3
|
|
12
|
+
Classifier: Operating System :: POSIX
|
|
13
|
+
Provides-Extra: websocket
|
|
14
|
+
Requires-Dist: codecraftai-extension (<2.0.0)
|
|
15
|
+
Requires-Dist: codecraftai-foundations (<2.0.0)
|
|
16
|
+
Requires-Dist: codecraftai-testbase (<2.0.0)
|
|
17
|
+
Requires-Dist: codecraftai-this-app (<2.0.0)
|
|
18
|
+
Requires-Dist: codecraftai-xmodules (<2.0.0)
|
|
19
|
+
Requires-Dist: requests (>=2.32.4,<3.0.0)
|
|
20
|
+
Requires-Dist: websocket-client (>=1.8.0,<2.0.0) ; extra == "websocket"
|
|
21
|
+
Project-URL: Issues, https://github.com/code-craft-ai-company/codecraftai-integration-runtime/issues
|
|
22
|
+
Project-URL: Repository, https://github.com/code-craft-ai-company/codecraftai-integration-runtime
|
|
23
|
+
Description-Content-Type: text/x-rst
|
|
24
|
+
|
|
25
|
+
===============================
|
|
26
|
+
codecraftai-integration-runtime
|
|
27
|
+
===============================
|
|
28
|
+
|
|
29
|
+
The ``codecraftai-integration-runtime`` package is the *integration test-job layer*
|
|
30
|
+
of the Code Craft AI suite. It builds on the near-standalone ``codecraftai-testbase``
|
|
31
|
+
single-host test framework and, using the ``codecraftai-extension`` extensibility
|
|
32
|
+
mechanism, supplies the ``IntegratedTestJob`` that adds the heavyweight reporting
|
|
33
|
+
and integration behaviour that plain ``testbase`` deliberately leaves out:
|
|
34
|
+
|
|
35
|
+
* JSOS / JSON streaming result recording to a well-known results directory
|
|
36
|
+
* HTML-rendered test summaries (templates, static resources)
|
|
37
|
+
* build / pipeline / job metadata sourced from ``ccai.thisapp`` runtime variables
|
|
38
|
+
* the result server, progress concentrators, and streaming infrastructure
|
|
39
|
+
* the integration / activation-driven CLI commands
|
|
40
|
+
|
|
41
|
+
``codecraftai-testbase`` records to **stdout** (and optional JSOS/JSON files) and has no
|
|
42
|
+
dependency on this package. Packages that need persistent, rendered, CI-grade results
|
|
43
|
+
(``codecraftai-interop``, ``codecraftai-testplus`` and their downstreams) build their TestJob
|
|
44
|
+
hierarchy on ``IntegratedTestJob`` from this package.
|
|
45
|
+
|
|
46
|
+
This package was formed by **renaming and repurposing** the former ``codecraftai-runtime``
|
|
47
|
+
package. The general runtime foundation (runtime variables, well-known paths, profile/job
|
|
48
|
+
enumerations, activation) moved *down* into ``codecraftai-this-app``; what remains here is the
|
|
49
|
+
integration test-job machinery migrated out of ``codecraftai-testbase``.
|
|
50
|
+
|
|
51
|
+
See ``AGENTS.md`` for the project overview and ``REFACTOR-TESTBASE-INTEGRATION-RUNTIME-ROADMAP.md``
|
|
52
|
+
in the monorepo root for the migration plan.
|
|
53
|
+
|
|
54
|
+
Build / Test / Run
|
|
55
|
+
==================
|
|
56
|
+
|
|
57
|
+
This repository follows the shared ``codecraftai-*`` skeleton.
|
|
58
|
+
|
|
59
|
+
1. Re-home the repository (regenerates ``.env``)::
|
|
60
|
+
|
|
61
|
+
./repository-setup/rehome-repository
|
|
62
|
+
|
|
63
|
+
2. Set up the virtual environment::
|
|
64
|
+
|
|
65
|
+
./development/setup-environment
|
|
66
|
+
poetry install --all-extras
|
|
67
|
+
|
|
68
|
+
3. Run the tests::
|
|
69
|
+
|
|
70
|
+
source ./.venv/bin/activate
|
|
71
|
+
testbase testing run --root ./source/testroots/ccai --includes=ccai.tests --output=./.output
|
|
72
|
+
deactivate
|
|
73
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
ccai/integrationruntime/__init__.py,sha256=Hecv6IZpfe3wgxzdS7Cg0N-A2nH_XXjn7LQhJHLWvQI,1504
|
|
2
|
+
ccai/integrationruntime/entrypoints.py,sha256=RFN7QDcKm4p5s1RxnJbF0_VZrfLtrPuRIWhAiDb66bA,2718
|
|
3
|
+
ccai/integrationruntime/initialize.py,sha256=hVvobZ5mO6wasGyglGLVq8tSY1acQAbj9JS_oNHuHK8,4483
|
|
4
|
+
ccai/integrationruntime/integratedtestjob.py,sha256=2rpObBer60QSIiivlC9AZpYCmvOtxACEFUQSp2NUexE,4644
|
|
5
|
+
ccai/integrationruntime/integrationruntimedefaulttypefactory.py,sha256=RyOqYCFlvStaXtQrBkhYqJy_3H4-wU0vu6zOmMSungE,2061
|
|
6
|
+
ccai/integrationruntime/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
7
|
+
ccai/integrationruntime/results/__init__.py,sha256=gPEgCQsd14hzKRji5uZP6FExP427fbpf8XgOK7uZTHA,551
|
|
8
|
+
ccai/integrationruntime/results/concentrators/__init__.py,sha256=i6iDFRBF0iz66R8fgmKVsXyWmLwOAW1Eo887tTigJKg,316
|
|
9
|
+
ccai/integrationruntime/results/concentrators/progressconcentratorservice.py,sha256=1MnGD1nzv-OlFq_JlplBr0Ww4g5GdagfpQ4E-ZSr81w,24233
|
|
10
|
+
ccai/integrationruntime/results/recorders/__init__.py,sha256=OeRbtab6Jy2zYbJbMgZ9eTfbleyZq32__LtIf_DQECI,826
|
|
11
|
+
ccai/integrationruntime/results/recorders/integrationjsonresultrecorder.py,sha256=w5sllEVpm3qzDWY4-f_p4Kf12Ws0KHUpHYhTmHEa2H0,5970
|
|
12
|
+
ccai/integrationruntime/results/recorders/streamingresultrecorder.py,sha256=uh6eGVDVh9BTfZmw_wlNv5qjWHcLZEfgyOPN_dhJp24,10338
|
|
13
|
+
ccai/integrationruntime/results/streaming/__init__.py,sha256=oW3vM50UxUcprXNqs5tUykzTjmKSr9jh2fwi35XKbiU,673
|
|
14
|
+
ccai/integrationruntime/results/streaming/resultstreamer.py,sha256=7t7rb8DMENmerEuiNaJ2sdkcY6h-4FGM0bWy3VKkMyo,19950
|
|
15
|
+
ccai/integrationruntime/runtimeoutputcontext.py,sha256=f2HM94gKutCJu8fvtxOp5QWGpyot-W2nM0jNDugZx_g,2716
|
|
16
|
+
ccai/integrationruntime/runtimerunmetadata.py,sha256=dIjk1Iw390yd8VcxDoOhNG4S8evTCuKD0P0E0ITvE5I,5676
|
|
17
|
+
ccai/integrationruntime/templates/v2/static/images/test-report-banner-background-image.png,sha256=psHfJcwUrLiE3AVt0Lh3rMnmFzyNMaIdySxdq2bDG-M,1144941
|
|
18
|
+
ccai/integrationruntime/templates/v2/static/javascript/d3.v7.js,sha256=DA1YviEGwU4kL8dbwJoXRngAYwdRWAZl9ulVKgwGTqI,587043
|
|
19
|
+
ccai/integrationruntime/templates/v2/static/javascript/icon-components.js,sha256=FmZ0u-7zySJx5erGXaJkC2cE7a_eWxUCQ6_9Fj0OAIo,18928
|
|
20
|
+
ccai/integrationruntime/templates/v2/static/javascript/mojo-components.js,sha256=qB_CGhLNUhh3ci71nAEu-hbaahLiIwfC9XsuPV8ZPac,48920
|
|
21
|
+
ccai/integrationruntime/templates/v2/static/javascript/prism.js,sha256=I0mcmxeYBH2oJjkUBy_Mir5k-Q27aeuQtbxB5YuNr4w,54704
|
|
22
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary-accessibility.js,sha256=bWUZ4xxYhi-Vq5MLBLPbLJ_atU55rh0HQtTFUwCGU-I,23649
|
|
23
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary-comparison.js,sha256=8JfEektWmQtM9evMOsmBU_Rk5iQ5iXcJAjY5sPZeZds,47175
|
|
24
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary-components.js,sha256=E7logepFs7dAt__olqU6PzaJoIanTsHCVwT0nv0qvTw,131411
|
|
25
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary-helpers.js,sha256=UKORCdWelEv4_xM-XW9LCSZxnA0IgBhCRzE0RKu1mnY,14534
|
|
26
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary-responsive.js,sha256=cKAN6aWFOb-GhY626kYBD7mo116gadgNvgE6F_-WNUU,16197
|
|
27
|
+
ccai/integrationruntime/templates/v2/static/javascript/testsummary.js,sha256=4HU6oZDZBHN8VBg5L2dw95oWJlsl5f2cEFqS6JbkSlI,43369
|
|
28
|
+
ccai/integrationruntime/templates/v2/static/javascript/webcomponent-helpers.js,sha256=OrTgXBxeR-AiSQ0blYODcQkPURWqiWXgPbT99dRk6Zw,4821
|
|
29
|
+
ccai/integrationruntime/templates/v2/static/styles/branding-theme.css,sha256=1hX52YrR-o6dJuWpgMuav4qULlr2Z8AHoi0_F3Kr0L4,2752
|
|
30
|
+
ccai/integrationruntime/templates/v2/static/styles/icon-styles.css,sha256=8uMInTLjt72_p5hE0dAyi4fMupa-Bca4iA9e6fKJvu4,158
|
|
31
|
+
ccai/integrationruntime/templates/v2/static/styles/mojo-components.css,sha256=7iqpehPp97oxYX3jKu_eBELTHGnUAu5ZNmfKSjlTYF0,7373
|
|
32
|
+
ccai/integrationruntime/templates/v2/static/styles/prism.css,sha256=1Itvv3jhUT4ClNfLh3Amblciqodj3hKsQHRcyYKZ2sg,2449
|
|
33
|
+
ccai/integrationruntime/templates/v2/static/styles/tabs-responsive.css,sha256=GNQ0W-_RhJANyrJg8bspghVmnN2_nIxbjiGDE5_lPMU,4335
|
|
34
|
+
ccai/integrationruntime/templates/v2/static/styles/testsummary-accessibility.css,sha256=SqwRjjqhr8koN4qrWoHVt_-7ZvOwnBka_480yNyDHkM,11262
|
|
35
|
+
ccai/integrationruntime/templates/v2/static/styles/testsummary-comparison.css,sha256=GEVr5U-aeqUcbumT2WXYLuQ2l3KZ6xExpmzmQB9N3_g,15052
|
|
36
|
+
ccai/integrationruntime/templates/v2/static/styles/testsummary-responsive.css,sha256=YLZZ1vfngwzGcRzig_Uhbc-7GwaPq4zDDkRzsXWcLy0,14959
|
|
37
|
+
ccai/integrationruntime/templates/v2/static/styles/testsummary.css,sha256=u_Gq8H21CL4qQDPHV8sVo8TawbUI-JaaGrHz1o9Y4Kk,32010
|
|
38
|
+
ccai/integrationruntime/templates/v2/tabs/tab-data.html,sha256=6fxjvnuNkYBCh50Go8p_iQrKN6lKsE-UsK1hb4-f5P8,30587
|
|
39
|
+
ccai/integrationruntime/templates/v2/tabs/tab-images.html,sha256=1Qbci4WJqgCodDWrIQ_2AWr3sTjcsiajK_Yt5BtjVKA,3160
|
|
40
|
+
ccai/integrationruntime/templates/v2/tabs/tab-logs.html,sha256=0vkV_HjN235zNmBHkDbiFIDHsdHiwDnDuon4U05AM0I,20039
|
|
41
|
+
ccai/integrationruntime/templates/v2/tabs/tab-sounds.html,sha256=6gRV47vqUDeShSq967D8ypEpilF-YmC02Ss8W5X9Fko,3226
|
|
42
|
+
ccai/integrationruntime/templates/v2/tabs/tab-timeseries.html,sha256=LVwX5MXNRyhSqqKCE6G0kJjgcBAZFWu746XBNuZQaF8,12568
|
|
43
|
+
ccai/integrationruntime/templates/v2/tabs/tab-videos.html,sha256=X5R00KIK2yvj4WTwGJMJWIVCPTQOKhwIqM8M_SXs9SQ,12613
|
|
44
|
+
ccai/integrationruntime/templates/v2/testsummary.html,sha256=fNgQUMFeLFsXImUttWNGpN3FuFa8m_10Naqq9smX9bI,4609
|
|
45
|
+
codecraftai_integration_runtime-1.3.0.dist-info/METADATA,sha256=LIFDt1ORt2nodxNY18Dm0kGTUpMaZ2OfBABiwj2K3zM,3143
|
|
46
|
+
codecraftai_integration_runtime-1.3.0.dist-info/WHEEL,sha256=L-WvLdSBvJWHXv5zrQxDvNRnIgoBzLUpcbuiw19KCuQ,88
|
|
47
|
+
codecraftai_integration_runtime-1.3.0.dist-info/licenses/LICENSE.md,sha256=5tyUZ2kpPxNXbULzrdiT14-ZV-jCBeBFL0xyO-zt1mg,17907
|
|
48
|
+
codecraftai_integration_runtime-1.3.0.dist-info/RECORD,,
|