tng 0.1.6 → 0.2.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/LICENSE.md +2 -2
- data/README.md +10 -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 +68 -6
- 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: 2f69760b825ea26b8df034a062aead175841853abe85aca95f696dbb6f3bc08f
|
4
|
+
data.tar.gz: d2f78b191f2f7d8c4fd848e86c173267e6c863439d102866a0dc2a06e568df59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c41234662b8463949fe63a0ce6aae3b277cb0ee64de945a0d593673fd65ecadb5f2e36b6b929363b5fa1a790290297c2e03d4600d28f65da410ebc9c27af27bf
|
7
|
+
data.tar.gz: 74158326b96a5a6a08f8213e64033e8c1ae70504f6bc4be1b8238bb2d7839bdf55af0e5e3caa194510f9c1bebf59e5a6c9ee1e3df8852ef56cbba2bcbfb0184b
|
data/LICENSE.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Commercial License
|
2
2
|
|
3
|
-
Copyright (c) 2025
|
3
|
+
Copyright (c) 2025 Binary Dreams LLC. All rights reserved.
|
4
4
|
|
5
5
|
## License Grant
|
6
6
|
|
@@ -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
@@ -2,6 +2,8 @@
|
|
2
2
|
|
3
3
|
TNG is an AI-powered test generation tool that automatically creates comprehensive tests for your Rails applications. It analyzes your code structure, authentication patterns, and configuration to generate high-quality, contextual tests that follow your project's conventions.
|
4
4
|
|
5
|
+
**Owner:** Binary Dreams LLC
|
6
|
+
|
5
7
|
## Installation
|
6
8
|
|
7
9
|
### Standard Installation
|
@@ -302,28 +304,14 @@ This launches an interactive session where you can:
|
|
302
304
|
- Preview generated tests before saving
|
303
305
|
- Adjust configuration on the fly
|
304
306
|
|
305
|
-
###
|
306
|
-
|
307
|
-
Generate tests directly from the command line without interactive prompts:
|
308
|
-
|
309
|
-
#### Standard Format
|
310
|
-
```bash
|
311
|
-
bundle exec tng --type=controller --file=users_controller
|
312
|
-
bundle exec tng --type=controller --file="admin/users_controller"
|
313
|
-
bundle exec tng --type=model --file=user
|
314
|
-
bundle exec tng --type=model --file="blog/post"
|
315
|
-
```
|
307
|
+
### Method-Specific Testing
|
316
308
|
|
317
|
-
|
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
|
309
|
+
TNG focuses on precise, method-level test generation:
|
322
310
|
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
311
|
+
- **Select specific methods** from 20+ file types including controllers, models, services, jobs, helpers, lib, policies, presenters, mailers, GraphQL components, and more
|
312
|
+
- **Interactive browsing** with search and filter capabilities
|
313
|
+
- **Focused test generation** for individual methods only
|
314
|
+
- **No bulk generation** - intentionally designed for precision
|
327
315
|
|
328
316
|
Use `bundle exec tng --help` for more options.
|
329
317
|
|
@@ -424,4 +412,6 @@ If you're still experiencing issues: Contact the gem maintainers or open a GitHu
|
|
424
412
|
|
425
413
|
## License
|
426
414
|
|
415
|
+
Copyright (c) 2025 Binary Dreams LLC. All rights reserved.
|
416
|
+
|
427
417
|
See [LICENSE.md](LICENSE.md) for details.
|