Orchestrata Ultimate › Tests › Reference › scripts › test_generate_rtm_evidence_ts

Tests reference — tests/scripts/test_generate_rtm_evidence_ts.py

Module of tests/scripts, split out because the directory page would be too large.

Prose pending.

tests/scripts/test_generate_rtm_evidence_ts.py

source · 24 tests · 396 lines

Tests for the TS-side @traces harvester in scripts/generate_rtm_evidence.py

Kind Name Line Description
class TestHarvestTsDeclarations 50
method TestHarvestTsDeclarations.test_block_comment_tag 51
method TestHarvestTsDeclarations.test_line_comment_tag 60
method TestHarvestTsDeclarations.test_space_separated_ids 70
method TestHarvestTsDeclarations.test_comma_separated_ids 78
method TestHarvestTsDeclarations.test_multiple_tags_in_one_file 86
method TestHarvestTsDeclarations.test_multiple_tags_repeated_same_symbol 99
method TestHarvestTsDeclarations.test_node_modules_excluded 112
method TestHarvestTsDeclarations.test_req_id_inside_string_literal_is_not_a_claim 119
method TestHarvestTsDeclarations.test_no_traces_tag_yields_empty 129
method TestHarvestTsDeclarations.test_undecodable_file_is_skipped 135
method TestHarvestTsDeclarations.test_placeholder_id_excluded 141
class TestHarvestTsDeclarationsRealTree 148
method TestHarvestTsDeclarationsRealTree.test_kg_context_req_021_004_is_harvested 149
method TestHarvestTsDeclarationsRealTree.test_no_node_modules_files_leak_into_real_tree_harvest 159
class TestTsDeclarationsGradeDeclared 166
method TestTsDeclarationsGradeDeclared.test_ts_only_declaration_grades_declared_not_unlinked 167
method TestTsDeclarationsGradeDeclared.test_main_merges_ts_declarations_into_src_declared_grade 181
class TestEveryWebTreeIsActuallyWalked 227 The glob widening bought nothing until the ROOTS were widened too.
method TestEveryWebTreeIsActuallyWalked.test_vizint_ui_is_one_of_the_default_roots 238
method TestEveryWebTreeIsActuallyWalked.test_a_missing_root_is_skipped_not_fatal 242 Roots are declared, not discovered; an absent one must not raise.
method TestEveryWebTreeIsActuallyWalked.test_the_real_calendar_gadget_tags_reach_the_harvest 246 A live SPEC-017 tag in vizint-ui, harvested from the default roots.
method TestEveryWebTreeIsActuallyWalked.test_main_harvests_every_declared_root 260 Two roots, one requirement each -- both must grade DECLARED.
class TestJavaScriptIsHarvestedToo 322 .js must be harvested, not only .ts.
method TestJavaScriptIsHarvestedToo.test_a_js_line_comment_tag_is_harvested 332 The // @traces form, in a .js file.
method TestJavaScriptIsHarvestedToo.test_a_js_block_comment_tag_is_harvested 343 The /** */ form, in a .js file.
method TestJavaScriptIsHarvestedToo.test_a_url_in_a_js_string_is_not_read_as_a_comment 355 "http://..." must not open a comment span.
method TestJavaScriptIsHarvestedToo.test_node_modules_is_still_excluded_for_js 372 Vendored .js is far more common than vendored .ts.
method TestJavaScriptIsHarvestedToo.test_all_four_suffixes_are_covered 379 .ts, .tsx, .js and .jsx all harvest.