tng 0.4.1 ā 0.4.2
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.
- checksums.yaml +4 -4
- data/bin/tng +0 -4
- data/binaries/go-ui-darwin-amd64 +0 -0
- data/binaries/go-ui-darwin-arm64 +0 -0
- data/binaries/go-ui-linux-amd64 +0 -0
- data/binaries/go-ui-linux-arm64 +0 -0
- data/binaries/tng-darwin-arm64.bundle +0 -0
- data/binaries/tng-darwin-x86_64.bundle +0 -0
- data/binaries/tng-linux-arm64.so +0 -0
- data/binaries/tng-linux-x86_64.so +0 -0
- data/binaries/tng.bundle +0 -0
- data/lib/tng/services/test_generator.rb +10 -10
- data/lib/tng/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e85eb1a0b69399a5220189d7f2040162f85c4ce812869f8ac6a276265e6c1aa1
|
|
4
|
+
data.tar.gz: a23b1fef88e05cca2882ea76066ca463ae135a2b187fcac62097118f9f9f5d0e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 64d50221216859f7be5d5df98cd012af5e94231b2f41531229418c24756591ce01de355efc0d277c073d564d7ec2bc8ea210730849015daed44fbff31aea0e9a
|
|
7
|
+
data.tar.gz: 772634eb20ff51b14cdcf02e17e020e70389d8c00609b7c3f7a91c6e6355dd7fb651e7f80825795cc66321548079c6e4fc593054f5b6d173f4255574d5e7117e
|
data/bin/tng
CHANGED
|
@@ -332,10 +332,6 @@ class CLI
|
|
|
332
332
|
def display_audit_results(result)
|
|
333
333
|
audit_data = result[:audit_results]
|
|
334
334
|
|
|
335
|
-
# Save to JSON for persistence
|
|
336
|
-
File.write("audit.json", JSON.pretty_generate(audit_data))
|
|
337
|
-
puts @pastel.green("š¾ Audit results saved to audit.json")
|
|
338
|
-
|
|
339
335
|
# Send entire audit_data to go-ui (includes issues, behaviours, method_name, class_name, method_source_with_lines)
|
|
340
336
|
@go_ui.show_audit_results(audit_data, "issues")
|
|
341
337
|
end
|
data/binaries/go-ui-darwin-amd64
CHANGED
|
Binary file
|
data/binaries/go-ui-darwin-arm64
CHANGED
|
Binary file
|
data/binaries/go-ui-linux-amd64
CHANGED
|
Binary file
|
data/binaries/go-ui-linux-arm64
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/binaries/tng-linux-arm64.so
CHANGED
|
Binary file
|
|
Binary file
|
data/binaries/tng.bundle
CHANGED
|
Binary file
|
|
@@ -226,23 +226,23 @@ module Tng
|
|
|
226
226
|
end
|
|
227
227
|
|
|
228
228
|
begin
|
|
229
|
-
status_data = JSON.parse(status_response.body.to_s)
|
|
230
|
-
status = status_data[
|
|
229
|
+
status_data = JSON.parse(status_response.body.to_s, symbolize_names: true)
|
|
230
|
+
status = status_data[:status]
|
|
231
231
|
|
|
232
232
|
# Update UI with granular info
|
|
233
|
-
if progress && status_data[
|
|
234
|
-
info = status_data[
|
|
233
|
+
if progress && status_data[:info].is_a?(Hash)
|
|
234
|
+
info = status_data[:info]
|
|
235
235
|
|
|
236
236
|
agent_step_indices.each do |key, step_idx|
|
|
237
|
-
item_data = info[key]
|
|
237
|
+
item_data = info[key.to_sym]
|
|
238
238
|
next unless item_data
|
|
239
239
|
|
|
240
240
|
agent_status = "pending"
|
|
241
241
|
values = []
|
|
242
242
|
|
|
243
243
|
if item_data.is_a?(Hash)
|
|
244
|
-
agent_status = item_data[
|
|
245
|
-
values = item_data[
|
|
244
|
+
agent_status = item_data[:status] || "pending"
|
|
245
|
+
values = item_data[:values] || []
|
|
246
246
|
else
|
|
247
247
|
agent_status = item_data.to_s
|
|
248
248
|
end
|
|
@@ -284,10 +284,10 @@ module Tng
|
|
|
284
284
|
case status
|
|
285
285
|
when "completed"
|
|
286
286
|
debug_log("Test generation completed!") if debug_enabled?
|
|
287
|
-
return status_data[
|
|
287
|
+
return status_data[:result].merge(analysis: status_data[:analysis])
|
|
288
288
|
when "failed"
|
|
289
|
-
debug_log("Test generation failed: #{status_data[
|
|
290
|
-
return { error: :generation_failed, message: status_data[
|
|
289
|
+
debug_log("Test generation failed: #{status_data[:error]}") if debug_enabled?
|
|
290
|
+
return { error: :generation_failed, message: status_data[:error] }
|
|
291
291
|
when "pending", "processing"
|
|
292
292
|
next
|
|
293
293
|
else
|
data/lib/tng/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tng
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ralucab
|
|
@@ -222,7 +222,7 @@ post_install_message: "ā TNG āāāāāāāāāāāāāāāā
|
|
|
222
222
|
\ ā\nā ⢠bundle exec
|
|
223
223
|
tng --help - Show help information ā\nā ā\nā
|
|
224
224
|
\ \U0001F4A1 Generate tests for individual methods with precision ā\nāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
225
|
-
v0.4.
|
|
225
|
+
v0.4.2 ā\n"
|
|
226
226
|
rdoc_options: []
|
|
227
227
|
require_paths:
|
|
228
228
|
- lib
|