Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(developer): rename test files #12707

Merged
merged 1 commit into from
Nov 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion developer/src/common/web/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build": "tsc -b"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import 'mocha';
import { makePathToFixture } from '../helpers/index.js';
import KvksFileReader from "../../src/types/kvks/kvks-file-reader.js";
import KvksFileWriter from "../../src/types/kvks/kvks-file-writer.js";
import { verify_khmer_angkor, verify_balochi_inpage } from './test-kvk-utils.js';
import { verify_khmer_angkor, verify_balochi_inpage } from './kvk-utils.tests.js';
import { assert } from 'chai';

describe('kvks-file-reader', function() {
Expand Down
4 changes: 2 additions & 2 deletions developer/src/common/web/utils/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"helpers/*.ts",
],
"references": [
{ "path": "../" },
{ "path": "../../test-helpers/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-analyze/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-analyze/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"helpers/*.ts",
],
"references": [
{ "path": "../" },
{ "path": "../../common/web/test-helpers/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-copy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-copy/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"./shared-options.ts",
"./helpers/index.ts"
],
Expand All @@ -25,4 +25,4 @@
{ "path": "../../common/web/test-helpers/" },
{ "path": "../" }
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-generate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-generate/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"./shared-options.ts",
"./helpers/index.ts"
],
Expand All @@ -25,4 +25,4 @@
{ "path": "../../common/web/test-helpers/" },
{ "path": "../" }
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-keyboard-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-keyboard-info/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"helpers/*.ts",
],
"references": [
{ "path": "../" },
{ "path": "../../common/web/test-helpers/" },
{ "path": "../../kmc-package/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-kmn/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-kmn/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"allowSyntheticDefaultImports": true, // for chai
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"./helpers/index.ts",
"./kmw/util.ts"
],
Expand All @@ -20,4 +20,4 @@
{ "path": "../../common/web/test-helpers/" },
{ "path": "../" }
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-ldml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-ldml/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"strictNullChecks": false, // TODO: get rid of this as some point
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"./helpers/index.ts"
],
"references": [
Expand All @@ -19,4 +19,4 @@
{ "path": "../../common/web/test-helpers/" },
{ "path": "../" }
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-model-info/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-model-info/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"helpers/*.ts",
],
"references": [
{ "path": "../" },
{ "path": "../../common/web/test-helpers/" },
{ "path": "../../kmc-package/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-model/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"mocha": "^10.0.0"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-model/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"*.ts",
"helpers/*.ts",
"wordbreakers/*.ts"
Expand All @@ -19,4 +19,4 @@
{ "path": "../" },
{ "path": "../../common/web/test-helpers/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc-package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc-package/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"allowSyntheticDefaultImports": true, // for jszip
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"helpers/*.ts"
],
"references": [
Expand All @@ -18,4 +18,4 @@
{ "path": "../../../../common/web/keyman-version" },
{ "path": "../../common/web/test-helpers/" },
]
}
}
2 changes: 1 addition & 1 deletion developer/src/kmc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
"typescript": "^5.4.5"
},
"mocha": {
"spec": "build/test/**/test-*.js",
"spec": "build/test/**/*.tests.js",
"require": [
"source-map-support/register"
]
Expand Down
4 changes: 2 additions & 2 deletions developer/src/kmc/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"baseUrl": ".",
},
"include": [
"**/test-*.ts",
"**/*.tests.ts",
"./helpers/index.ts",
],
"references": [
{ "path": "../../../../common/web/types/" },
{ "path": "../../common/web/test-helpers/" },
{ "path": "../" }
]
}
}
18 changes: 9 additions & 9 deletions developer/src/kmcmplib/tests/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif
input_path = meson.current_source_dir() / '../../../../common/test/keyboards/baseline'
output_path = meson.current_build_dir()

kmcompxtest = executable('kmcompxtest', ['kmcompxtest.cpp','util_filesystem.cpp','util_callbacks.cpp'],
kmcompxtest = executable('kmcompxtests', ['kmcompx.tests.cpp','util_filesystem.cpp','util_callbacks.cpp'],
cpp_args: defns + flags,
include_directories: inc,
name_suffix: name_suffix,
Expand Down Expand Up @@ -133,7 +133,7 @@ common_test_files = [ meson.global_source_root() / '../../../common/include/test

# Test the API endpoints

apitest = executable('api-test', ['api-test.cpp','util_filesystem.cpp','util_callbacks.cpp', common_test_files],
apitest = executable('api-tests', ['api.tests.cpp','util_filesystem.cpp','util_callbacks.cpp', common_test_files],
cpp_args: defns + flags,
include_directories: inc,
name_suffix: name_suffix,
Expand All @@ -142,9 +142,9 @@ apitest = executable('api-test', ['api-test.cpp','util_filesystem.cpp','util_cal
dependencies: icuuc_dep
)

test('api-test', apitest, args: [output_path / 'blank_keyboard.kmx'])
test('api-tests', apitest, args: [output_path / 'blank_keyboard.kmx'])

usetapitest = executable('uset-api-test', 'uset-api-test.cpp', common_test_files,
usetapitest = executable('uset-api-tests', 'uset-api.tests.cpp', common_test_files,
cpp_args: defns + flags,
include_directories: inc,
name_suffix: name_suffix,
Expand All @@ -153,11 +153,11 @@ usetapitest = executable('uset-api-test', 'uset-api-test.cpp', common_test_files
dependencies: icuuc_dep,
)

test('uset-api-test', usetapitest)
test('uset-api-tests', usetapitest)

# Google Test

gtestcompilertest = executable('gtest-compiler-test', 'gtest-compiler-test.cpp',
gtestcompilertest = executable('gtest-compiler-tests', 'gtest-compiler.tests.cpp',
cpp_args: defns + flags,
include_directories: inc,
name_suffix: name_suffix,
Expand All @@ -166,9 +166,9 @@ gtestcompilertest = executable('gtest-compiler-test', 'gtest-compiler-test.cpp',
dependencies: [ icuuc_dep, gtest_dep, gmock_dep ],
)

test('gtest-compiler-test', gtestcompilertest)
test('gtest-compiler-tests', gtestcompilertest)

gtest_km_u16_test = executable('gtest-km_u16-test', 'gtest-km_u16-test.cpp',
gtest_km_u16_test = executable('gtest-km_u16-tests', 'gtest-km_u16.tests.cpp',
cpp_args: defns + flags,
include_directories: inc,
name_suffix: name_suffix,
Expand All @@ -177,4 +177,4 @@ gtest_km_u16_test = executable('gtest-km_u16-test', 'gtest-km_u16-test.cpp',
dependencies: [ icuuc_dep, gtest_dep, gmock_dep ],
)

test('gtest-km_u16-test', gtest_km_u16_test)
test('gtest-km_u16-tests', gtest_km_u16_test)
4 changes: 2 additions & 2 deletions developer/src/server/test/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"baseUrl": ".",
},
"include": [
"**/*.test.ts"
"**/*.tests.ts"
],
"references": [
{ "path": "../" },
]
}
}