tng 0.1.6 → 0.2.1
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/LICENSE.md +1 -1
- data/README.md +6 -20
- data/bin/tng +238 -472
- data/binaries/tng.bundle +0 -0
- data/binaries/tng.so +0 -0
- data/lib/tng/analyzers/model.rb +9 -0
- data/lib/tng/analyzers/other.rb +277 -0
- data/lib/tng/analyzers/service.rb +1 -0
- data/lib/tng/api/http_client.rb +21 -23
- data/lib/tng/services/direct_generation.rb +320 -0
- data/lib/tng/services/extract_methods.rb +39 -0
- data/lib/tng/services/test_generator.rb +232 -104
- data/lib/tng/services/testng.rb +2 -2
- data/lib/tng/services/user_app_config.rb +5 -6
- data/lib/tng/ui/about_display.rb +7 -5
- data/lib/tng/ui/controller_test_flow_display.rb +0 -17
- data/lib/tng/ui/model_test_flow_display.rb +0 -17
- data/lib/tng/ui/other_test_flow_display.rb +78 -0
- data/lib/tng/ui/post_install_box.rb +7 -9
- data/lib/tng/ui/service_test_flow_display.rb +0 -17
- data/lib/tng/ui/show_help.rb +11 -68
- data/lib/tng/utils.rb +67 -5
- data/lib/tng/version.rb +1 -1
- metadata +15 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9965672463ad576e9cb6ee27df1e6ff4861f17f80cb332473b63110a6deebff
|
4
|
+
data.tar.gz: 3d22117b140daf9636c3a15ea53542272d9f18ba68f6497b223cf3df1670bdab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 519c42652328e661ae9ab5ed1f0cedbbbce1b5ddfbc3d7802ffd4646d943399f8290546b0a453f34075da5ce1382b661a355ab58de7223a4d6b81478c59dc266
|
7
|
+
data.tar.gz: 3b204c5a8fbeafa7df8ec3b676a2356c120bd3a7546bcd77a79e67decbd377f785440a747c04a9bdac55f85d816e4b55724675bb5675ff5d065fedcfca5f8414
|
data/LICENSE.md
CHANGED
@@ -17,7 +17,7 @@ Without a valid commercial license, you may NOT:
|
|
17
17
|
|
18
18
|
## Commercial Use
|
19
19
|
|
20
|
-
To obtain a commercial license for production use, contact: [
|
20
|
+
To obtain a commercial license for production use, contact: [raluca@tng.sh]
|
21
21
|
|
22
22
|
## Evaluation Use
|
23
23
|
|
data/README.md
CHANGED
@@ -302,28 +302,14 @@ This launches an interactive session where you can:
|
|
302
302
|
- Preview generated tests before saving
|
303
303
|
- Adjust configuration on the fly
|
304
304
|
|
305
|
-
###
|
305
|
+
### Method-Specific Testing
|
306
306
|
|
307
|
-
|
307
|
+
TNG focuses on precise, method-level test generation:
|
308
308
|
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
|
313
|
-
bundle exec tng --type=model --file=user
|
314
|
-
bundle exec tng --type=model --file="blog/post"
|
315
|
-
```
|
316
|
-
|
317
|
-
#### Short Aliases
|
318
|
-
```bash
|
319
|
-
# Super concise - perfect for quick generation
|
320
|
-
bundle exec tng -t c -f ping
|
321
|
-
bundle exec tng -t m -f user
|
322
|
-
|
323
|
-
# Mixed format also works
|
324
|
-
bundle exec tng --type=c --file=ping
|
325
|
-
bundle exec tng -t controller -f users_controller
|
326
|
-
```
|
309
|
+
- **Select specific methods** from 20+ file types including controllers, models, services, jobs, helpers, lib, policies, presenters, mailers, GraphQL components, and more
|
310
|
+
- **Interactive browsing** with search and filter capabilities
|
311
|
+
- **Focused test generation** for individual methods only
|
312
|
+
- **No bulk generation** - intentionally designed for precision
|
327
313
|
|
328
314
|
Use `bundle exec tng --help` for more options.
|
329
315
|
|