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

Updated Tst autocompletion support for ct (Issue #170) #249

Open
wants to merge 14 commits into
base: main
Choose a base branch
from

Conversation

Den1552
Copy link
Contributor

@Den1552 Den1552 commented Dec 18, 2024

Summary

Updates script editing to support coded tests and resolves #170.

Added

  • Syntax Support for TEST.CODED_TEST_FILE:

    • Added TEST.CODED_TEST_FILE as a valid syntax in .tst files.
    • Enabled auto-complete for TEST.CODED_TEST_FILE after typing TEST..
    • Ensured no auto-completion for the file path after :.
  • Behavior When TEST.SUBPROGRAM is coded_tests_driver:

    • Allowed TEST.CODED_TEST_FILE without error diagnostics.
    • Disallowed TEST.VALUE and TEST.EXPECTED lines, ensuring they give error diagnostics.
  • Behavior When TEST.SUBPROGRAM is Not coded_tests_driver:

    • Disallowed TEST.CODED_TEST_FILE, ensuring it gives an error diagnostic.
    • Removed coded_tests_driver from the subprogram list for TEST.VALUE and TEST.EXPECTED lines.
  • Error Handling Enhancements:

    • Reviewed and ensured consistency in error messages related to these changes.
  • Tests

    • Added tests for new diagnostics
  • Autocompletion list for TEST.SUBPROGRAM without using the fake TEST.VALUE line

    • In order to get the autocompletion list for TEST.SUBPROGRAM, we need the <unit> from TEST.UNIT.
    • This is retrieved with getNearest() in tstCompletion.ts.
    • This <unit> is sent as an additional parameter to the Python logic.
    • In processSubprogramLines() (tstUtilities.py), we use this <unit> to retrieve, with getFunctions(), the autocompletion list of all the functions in this unit from the DataAPI.
    • At the end, we add SUBPROGRAM-specific autocompletions like <<INIT>>, <<COMPOUND>>, <<coded_tests_driver>>.

Copy link

github-actions bot commented Dec 18, 2024

Unit Test results - Vcast 2023sp0

 1 files  ±0   8 suites  ±0   13s ⏱️ ±0s
63 tests +6  63 ✅ +6  0 💤 ±0  0 ❌ ±0 
64 runs  +6  64 ✅ +6  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

Unit Test results - Vcast 2024sp5

 1 files  ±0   9 suites  ±0   15s ⏱️ -1s
71 tests +6  71 ✅ +6  0 💤 ±0  0 ❌ ±0 
72 runs  +6  72 ✅ +6  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

Unit Test results - Vcast 2021sp0

 1 files  ±0   8 suites  ±0   13s ⏱️ ±0s
63 tests +6  63 ✅ +6  0 💤 ±0  0 ❌ ±0 
64 runs  +6  64 ✅ +6  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

Unit Test results - Vcast 2024sp4

 1 files  ±0   9 suites  ±0   15s ⏱️ -1s
71 tests +6  71 ✅ +6  0 💤 ±0  0 ❌ ±0 
72 runs  +6  72 ✅ +6  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   35s ⏱️ -10s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 37s ⏱️ -9s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group unit_basis

2 files  ±0  2 suites  ±0   3m 55s ⏱️ -2s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group flask_icon

9 tests  ±0   9 ✅ ±0   2m 6s ⏱️ -1s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group basic_user_interactions

10 files  ±0  10 suites  ±0   18m 59s ⏱️ +24s
32 tests ±0  32 ✅ ±0  0 💤 ±0  0 ❌ ±0 
52 runs  ±0  52 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group env_basis

2 files  ±0  2 suites  ±0   8m 9s ⏱️ -4s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group flask_icon

9 tests  ±0   9 ✅ ±0   1m 59s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 39s ⏱️ ±0s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group unit_basis

2 files  ±0  2 suites  ±0   3m 43s ⏱️ +6s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   37s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group bugs

 2 files  ±0   2 suites  ±0   3m 55s ⏱️ -12s
12 tests ±0  12 ✅ ±0  0 💤 ±0  0 ❌ ±0 
14 runs  ±0  14 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group basic_user_interactions

10 files  ±0  10 suites  ±0   18m 45s ⏱️ -12s
32 tests ±0  32 ✅ ±0  0 💤 ±0  0 ❌ ±0 
52 runs  ±0  52 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group env_basis

2 files  ±0  2 suites  ±0   7m 54s ⏱️ -22s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group build_env_failure_server

 2 files  ±0   2 suites  ±0   2m 33s ⏱️ -8s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group build_different_envs_server

5 tests  ±0   5 ✅ ±0   33s ⏱️ -2s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group build_different_envs

5 tests  ±0   5 ✅ ±0   34s ⏱️ ±0s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2021sp0 - Group func_basis

2 files  ±0  2 suites  ±0   2m 44s ⏱️ -10s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group func_basis

2 files  ±0  2 suites  ±0   2m 41s ⏱️ +6s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2023sp0 - Group bugs

 2 files  ±0   2 suites  ±0   3m 31s ⏱️ -21s
12 tests ±0  12 ✅ ±0  0 💤 ±0  0 ❌ ±0 
14 runs  ±0  14 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group build_env_failure

 2 files  ±0   2 suites  ±0   2m 37s ⏱️ -5s
 8 tests ±0   8 ✅ ±0  0 💤 ±0  0 ❌ ±0 
10 runs  ±0  10 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp4 - Group coded_mock

7 tests  ±0   7 ✅ ±0   1m 43s ⏱️ +5s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group coded_tests

 3 files  +2   3 suites  +2   7m 31s ⏱️ +29s
17 tests +1  17 ✅ +1  0 💤 ±0  0 ❌ ±0 
22 runs  +5  22 ✅ +5  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

This pull request removes 1 and adds 2 tests. Note that renamed tests count towards both.
chrome.108_0_5359_215.linux.vTypeCheck_VS_Code_Extension ‑ should clean up
chrome.108_0_5359_215.linux.vTypeCheck_VS_Code_Extension ‑ should create New Test Script for myFirstTest
chrome.108_0_5359_215.linux.vTypeCheck_VS_Code_Extension ‑ should edit Test Script and check for autocompletion

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group env_atg_server

2 files  ±0  2 suites  ±0   6m 26s ⏱️ -13s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group env_basis

2 files  ±0  2 suites  ±0   7m 39s ⏱️ -11s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group func_basis_server

2 files  ±0  2 suites  ±0   2m 45s ⏱️ +15s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group server_specifics

6 tests  ±0   6 ✅ ±0   1m 15s ⏱️ +4s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group func_atg_server

2 files  ±0  2 suites  ±0   2m 34s ⏱️ +5s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group unit_atg_server

2 files  ±0  2 suites  ±0   2m 51s ⏱️ -6s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group unit_atg

2 files  ±0  2 suites  ±0   3m 9s ⏱️ +28s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group import_coded_test_server

5 tests  ±0   5 ✅ ±0   35s ⏱️ +3s
1 suites ±0   0 💤 ±0 
1 files   ±0   0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group func_atg

2 files  ±0  2 suites  ±0   2m 33s ⏱️ +4s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 18, 2024

E2e Test results - Vcast 2024sp5 - Group func_basis

2 files  ±0  2 suites  ±0   2m 33s ⏱️ -7s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

@Den1552 Den1552 marked this pull request as ready for review December 19, 2024 16:10
langServer/tstCompletion.ts Outdated Show resolved Hide resolved
python/tstUtilities.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@Zbigor Zbigor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks alright. It would make sense to add a couple more e2e tests for the completion itself (suggested unit/function) and to cover that wider range indicated by codecov (the single line special failure cases aren't as important). The comment about a possible refactor could be turned into an "internal issue"

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2021sp0 - Group coverage

2 files  ±0  2 suites  ±0   1m 25s ⏱️ -10s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2023sp0 - Group coverage

2 files  ±0  2 suites  ±0   1m 27s ⏱️ -12s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2024sp4 - Group coverage

2 files  ±0  2 suites  ±0   1m 19s ⏱️ -7s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2024sp4 - Group coverage_server

2 files  ±0  2 suites  ±0   1m 18s ⏱️ -8s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2024sp5 - Group coverage

2 files  ±0  2 suites  ±0   1m 15s ⏱️ -1s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Dec 20, 2024

E2e Test results - Vcast 2024sp5 - Group coverage_server

2 files  ±0  2 suites  ±0   1m 19s ⏱️ -2s
7 tests ±0  7 ✅ ±0  0 💤 ±0  0 ❌ ±0 
9 runs  ±0  9 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit adbe679. ± Comparison against base commit cacd52b.

♻️ This comment has been updated with latest results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Test script editing needs some updates to support coded tests
2 participants