Open johnpaliotta opened 3 months ago
@aytey The first two items should be easy, the third one might be a little tricky, so let me know if Denis needs help
Note: @johnpaliotta is going to remove coded_tests_driver
from TEST.VALUE
, TEST.EXPECTED
and TEST.SUBPROGRAM
(which will then allow the current tests to pass when coded mocks are turned on).
When we come to solve this case, we need to re-enable coded_tests_driver
being a valid option for TEST.SUBPROGRAM
.
Note: @johnpaliotta is going to remove
coded_tests_driver
fromTEST.VALUE
,TEST.EXPECTED
andTEST.SUBPROGRAM
(which will then allow the current tests to pass when coded mocks are turned on).When we come to solve this case, we need to re-enable
coded_tests_driver
being a valid option forTEST.SUBPROGRAM
.
@Den1552 this was done in this commit: https://github.com/vectorgrp/vector-vscode-vcast/pull/105/commits/da8f133a92951280dd3f06083179e5ee587d3836
There are a few improvements needed - in the main branch
TEST.CODED_TEST_FILE
should be added as a valid syntax in a .tst file (it should appear in the auto-complete list when you type inTEST.
, and not give an error when you type in):
will be a file path (this could be relative or absolute), but we do not want to do auto-completion on the filename (i.e., forTEST.CODED_TEST_FILE
there is no autocomplete after:
)TEST.SUBPROGRAM
is set to:coded_tests_driver
TEST.CODED_TEST_FILE
should be allowed (that is, it should not give error diagnostics)TEST.VALUE
andTEST.EXPECTED
lines should not be allowed (these should give error diagnostics)TEST.SUBPROGRAM
is not set to:coded_tests_driver
TEST.CODED_TEST_FILE
should not be allowed (i.e., it should now give an error diagnostic)coded_tests_driver
should not show up in the subprogram list forTEST.VALUE
andTEST.EXPECTED
linesTEST.VALUE:<unit>.
you will get a list of all of the subprograms in<unit>
-- DataAPI will tell you thatcoded_tests_driver
is in<unit>
, but we want to hide that from a user (the same for `TEST.EXPECTED)Note:
tstCompletions.ts, comment: // TBD will need to change how this is done during the fix for issue #170
TEST.SUBPROGRAM
is a little bit of a hack and will need to changeTEST.VALUE:unit.
line to get the list of subprogramsgetFunctionList()
TEST.SLOT
linesgetFunctionList()
getFunctionList()
is the "core" of the interaction between VS Code and VectorCAST, and is probably the place wherecoded_test_driver
should be filtered, but not forTEST.SUBPROGRAM