Skip to content

Commit 826da57

Browse files
Den1552SalvatoreZagariaJohn PaliottaSalvatoreZagariaThisCakeIsALie
authored andcommitted
Manage autoreq merge (#8)
Merged main including manage support into autoreq. I had to do some changes regarding the env ID from the testing pane. * Add libxcb dependencies to Ubuntu24 CI Dockerfile (#254) * Add libxkb dependencies to Ubuntu24 CI Dockerfile (#256) * Added fix for MCDC coverage & import_coded_tests for 2025+ (#255) Fixes the MCDC & import_coded_tests issues we have on 2025sp1 * Manage support dev (#253) ## Overview This PR adds the functionality and a suite of automated tests for **Manage Support**. ## Tests & Functionality Included - **Tree Structure**: Test the correctness of the project tree structure. - **Add Existing Environment**: Add an existing environment to a project node. - **Create Compiler from CFG File**: Validate creating a compiler from a CFG configuration. - **Delete Compiler**: Test removing a compiler from the project. - **Build/Execute Incremental**: Validate incremental builds and executions. - **Create Testsuite**: Test creating a new testsuite. - **Delete Testsuite**: Verify testsuite deletion functionality. - **Delete Project Environment**: Ensure environments can be properly deleted from a project. - **Build Single Project Environment**: Test building a single environment separately. - **Remove Environment from Testsuite**: Validate unlinking an environment from a testsuite. - **Create Environment from Source Files**: Test creating an environment directly from source files. - **Change Update Project Setting & Update project manually** ## Additional Notes: - Manage-only code is placed in the folder `src/manage` - `tests/internal/e2e/test` now include a `manage` folder, including files important for tests - Because PCT wanted to load a test script by saving the file and not by (only) pressing "Load Test Script into Environment", I had to change all tests that had a `tab.save()`. Because this would trigger the loading test script which led to errors. - For many tests I added additional log awaitings because otherwise CI was too quick. - Some async issues had to be resolved in the source code, as we ran into race condition problems on CI --------- Co-authored-by: John Paliotta <john.paliotta@vector.com> Co-authored-by: SalvatoreZagaria <salvatore.zagaria@vector.com> * Changed CHANGELOG date (#257) * E2e import coded test (#258) E2E for importing coded test files. Resolves issue #114 * Remove developer vars from environment in release mode (#260) * Add debug flag to get debug info from cli outputs * Autocompletion fix and unit test for uut_prototype_stubs (#261) * Merge adjustments for requirements * Deleted unused var * Reverted commented code for server state * Fixed vscodeignore format --------- Co-authored-by: SalvatoreZagaria <37420335+SalvatoreZagaria@users.noreply.github.com> Co-authored-by: Denis Moslavac <44575706+Den1552@users.noreply.github.com> Co-authored-by: John Paliotta <john.paliotta@vector.com> Co-authored-by: SalvatoreZagaria <salvatore.zagaria@vector.com> Co-authored-by: Patrick Bareiss <Patrick.Bareiss@vector.com>
1 parent df16914 commit 826da57

88 files changed

Lines changed: 7257 additions & 901 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/run-tests-workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ jobs:
389389
echo 'Activating Vcast ${{ matrix.version }}'
390390
echo "VECTORCAST_DIR=$RELEASE_DIR" >> $GITHUB_ENV
391391
echo "PATH=$RELEASE_DIR:$PATH" >> $GITHUB_ENV
392-
USE_VCAST_24=$(if [[ $(cat $RELEASE_DIR/DATA/tool_version.txt) == 24* ]]; then echo "True"; else echo "False"; fi)
392+
USE_VCAST_24=$([ "$(head -n1 "$RELEASE_DIR/DATA/tool_version.txt" | grep -oE '^[0-9]+')" -ge 24 ] && echo "True" || echo "False")
393393
echo "USE_VCAST_24=$USE_VCAST_24" >> $GITHUB_ENV
394394
shell: bash
395395

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
"vunit"
2525
],
2626
"python.analysis.extraPaths": [
27-
"${workspaceFolder}/python"
27+
"${workspaceFolder}/python",
2828
],
2929
}

.vscodeignore

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ docker
2222
.gitignore
2323
.prettierignore
2424
.xo-config.json
25-
tsconfig_test.json
25+
tsconfig_test.json
26+
27+
# <— unignore webview assets
28+
!src/manage/webviews/html/**
29+
!src/manage/webviews/css/**
30+
!src/manage/webviews/webviewScripts/**
31+

CHANGELOG.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,3 +145,32 @@ This option is new for VectorCAST 23 sp2
145145
- Fix hover colours execution reports (#236)
146146
- Fix View Test Results context menu (#237)
147147

148+
## [1.0.15] - 2024-12-20
149+
- Implemented MCDC and MCDC+Statement Coverage (#243)
150+
- Added ability to generate MCDC reports
151+
152+
### Bug Fixes
153+
- Fixed wrong Test Results message log (#248)
154+
155+
## [1.0.16] - 2025-05-20
156+
- Implemented Manage support (#253), including:
157+
- **Environment Management**:
158+
- Add existing environments to projects.
159+
- Delete environments from a project.
160+
- Create environments from source files.
161+
- Build individual environments in isolation.
162+
- Build / Execute Environments
163+
- **Compiler Integration**:
164+
- Create compiler instances from CFG configuration files.
165+
- Remove compiler instances from the project.
166+
- **Testsuite Handling**:
167+
- Create and delete testsuites.
168+
- Link and unlink environments to/from testsuites.
169+
170+
- Implemented ability to load Test Scripts by saving the .tst file
171+
172+
## [1.0.17] - 2025-06-17
173+
174+
### Bug Fixes
175+
- Fixed autocompletion for uut_prototype_stubs.
176+

README.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,47 @@ The extension supports generating MC/DC reports for specific lines with MC/DC co
319319
- The report will open in a separate window on the right.
320320

321321

322+
### Manage Support
323+
324+
The VectorCAST VS Code extension integrates seamlessly with VectorCAST/Manage without forcing you to switch back to the VectorCAST GUI.
325+
326+
#### Goals
327+
328+
1. **Seamless VS Code Experience**
329+
Leverage your existing Manage project without duplicating configurations in both VS Code and the VectorCAST GUI.
330+
331+
2. **Minimize Context Switching**
332+
Perform everyday tasks—build, test, view reports—directly in VS Code. No need to jump back to the Manage GUI unless you’re doing advanced configuration work.
333+
334+
#### Accessing Manage Commands
335+
336+
Right‑click any node in the Test Explorer tree (or in the Explorer pane) and choose **VectorCAST →** to reveal the full set of Manage‑aware commands. These include:
337+
338+
| Command | Description |
339+
|-----------------------------------------|--------------------------------------------------------------------------|
340+
| **Add Existing Environment** | Link an existing Manage environment into your VS Code project node. |
341+
| **Delete Project Environment** | Remove the environment from both the tree and disk. |
342+
| **Build/Execute Incremental** | Run an incremental build & test based on the changed code/tests. |
343+
| **Create Compiler from CFG File** | Generate or validate a compiler configuration from a Manage CFG. |
344+
| **Delete Compiler** | Remove a compiler entry from the current Manage project. |
345+
| **Create Testsuite** | Add a new testsuite under your Manage project. |
346+
| **Delete Testsuite** | Remove an existing testsuite from the project. |
347+
| **Build Single Project Environment** | Build just one environment without affecting others. |
348+
| **Remove Environment from Testsuite** | Unlink an environment from a specific testsuite. |
349+
| **Create Environment from Source Files**| Generate a new environment directly from your source code. |
350+
351+
#### Typical Workflow
352+
353+
1. **Open a Manage Project**
354+
Open your workspace folder that contains a `Manage` project or a VectorCAST project directory.
355+
356+
2. **Discover Environments**
357+
The Test Explorer will automatically list all environments defined in Manage in the Testing pane.
358+
359+
3. **Right‑Click & Execute**
360+
To perform any command: **Right-Click on a Node → VectorCAST → Command**
361+
362+
322363
### VectorCAST Data Server
323364

324365
#### Introduction

docker/Ubuntu24-Dockerfile-CI

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ RUN sudo apt-get update && sudo apt-get install -y libcurl4-openssl-dev libexpat
6363
SHELL ["/bin/bash", "--login", "-c"]
6464

6565
RUN sudo apt-get update && \
66-
sudo apt-get install -y libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev && \
66+
sudo apt-get install -y libnss3-dev libgdk-pixbuf2.0-dev libgtk-3-dev libxss-dev libxcb\* libxkbcommon-x11-0 && \
6767
sudo apt-get update && sudo apt-get install -y libasound2-dev && \
6868
sudo apt-get install -y xvfb chromium-browser && \
6969
sudo apt-get clean && sudo rm -rf /var/lib/apt/lists/* && \

0 commit comments

Comments
 (0)