summaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorzaverden <[email protected]>2023-03-17 10:33:54 +0300
committerzaverden <[email protected]>2023-03-17 10:33:54 +0300
commit8475dd9deb086f897d0899215377ee7667f7893e (patch)
tree590754259b39009c8881d41c811140a7f72d4717 /build/plugins/nots.py
parent0223f0e221c12bd5eb3a532c2c12d3dc00ae77e8 (diff)
feat(TS_TEST): do not build on TS_TEST
Отключил сборку перед запуском тестов Проверил на `devtools/dummy_arcadia/ts/packages/with_test` - пиры нормально собираются
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 77f4074a91e..2111d46c385 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -95,13 +95,13 @@ def on_ts_test_configure(unit):
test_runner_handlers = _get_test_runner_handlers()
test_runner = unit.get("TS_TEST_RUNNER")
+ if not test_runner:
+ raise Exception("Test runner is not specified")
+
if test_runner not in test_runner_handlers:
raise Exception("Test runner: {} is not available, try to use one of these: {}"
.format(test_runner, ", ".join(test_runner_handlers.keys())))
- if not test_runner:
- raise Exception("Test runner is not specified")
-
test_files = ytest.get_values_list(unit, "_TS_TEST_SRCS_VALUE")
if not test_files:
raise Exception("No tests found in {}".format(unit.path()))
@@ -118,14 +118,16 @@ def on_ts_test_configure(unit):
deps = _create_pm(unit).get_peers_from_package_json()
test_record = {
+ # TODO: remove TS-ROOT-DIR, TS-OUT-DIR. fake values are for back-compat with ya and test_tool
+ "TS-ROOT-DIR": "fake",
+ "TS-OUT-DIR": "fake",
"TS-TEST-FOR-PATH": unit.get("TS_TEST_FOR_PATH"),
- "TS-ROOT-DIR": unit.get("TS_CONFIG_ROOT_DIR"),
- "TS-OUT-DIR": unit.get("TS_CONFIG_OUT_DIR"),
"TS-TEST-DATA-DIRS": ytest.serialize_list(data_dirs),
"TS-TEST-DATA-DIRS-RENAME": unit.get("_TS_TEST_DATA_DIRS_RENAME_VALUE"),
"CONFIG-PATH": config_path,
}
+ _set_nodejs_root(unit)
add_ts_test = test_runner_handlers[test_runner]
add_ts_test(unit, test_runner, test_files, deps, test_record)
@@ -138,6 +140,7 @@ def _get_test_runner_handlers():
def _add_jest_ts_test(unit, test_runner, test_files, deps, test_record):
+ # TODO: remove these 3 lines. NOTS-PLUGINS-PATH is for back-compat with ya nad test_tool
nots_plugins_path = os.path.join(unit.get("NOTS_PLUGINS_PATH"), "jest")
deps.append(nots_plugins_path)
test_record["NOTS-PLUGINS-PATH"] = nots_plugins_path