ai-unit-test-generator 1.4.3 → 1.4.4
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.
- package/CHANGELOG.md +7 -0
- package/bin/cli.js +2 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
7
7
|
|
8
|
+
## [1.4.4] - 2025-01-10
|
9
|
+
|
10
|
+
### Fixed
|
11
|
+
- Fixed CLI template path to use `default.config.jsonc` instead of `.json`
|
12
|
+
- Fixed config auto-detection order: `ai-test.config.jsonc` → `ai-test.config.json`
|
13
|
+
|
8
14
|
## [1.4.3] - 2025-01-10
|
9
15
|
|
10
16
|
### Changed
|
@@ -12,6 +18,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
12
18
|
- **Report simplification**: Removed redundant `Notes` column from reports (info now in config comments)
|
13
19
|
- **Better documentation**: Config file now self-documenting with detailed explanations of each scoring parameter
|
14
20
|
- Auto-detection order: `ai-test.config.jsonc` → `ai-test.config.json` → `ut_scoring_config.json` (deprecated)
|
21
|
+
- **Code cleanup**: Removed redundant legacy files
|
15
22
|
|
16
23
|
### Fixed
|
17
24
|
- Config file now properly supports JSONC format (JSON with comments)
|
package/bin/cli.js
CHANGED
@@ -31,12 +31,12 @@ program
|
|
31
31
|
let { config, output, skipGit } = options
|
32
32
|
|
33
33
|
// 自动探测现有配置 & 初始化(不存在则创建)
|
34
|
-
const detectOrder = [config, 'ai-test.config.
|
34
|
+
const detectOrder = [config, 'ai-test.config.jsonc', 'ai-test.config.json']
|
35
35
|
const detected = detectOrder.find(p => existsSync(p))
|
36
36
|
if (detected) config = detected
|
37
37
|
if (!existsSync(config)) {
|
38
38
|
console.log('⚙️ Config not found, creating default config...')
|
39
|
-
const templatePath = join(PKG_ROOT, 'templates', 'default.config.
|
39
|
+
const templatePath = join(PKG_ROOT, 'templates', 'default.config.jsonc')
|
40
40
|
copyFileSync(templatePath, config)
|
41
41
|
console.log(`✅ Config created: ${config}\n`)
|
42
42
|
}
|