Skip to content

Feature/run it test local#151

Merged
andrzej-janczak merged 3 commits intomainfrom
feature/run-it-test-local
Jun 16, 2025
Merged

Feature/run it test local#151
andrzej-janczak merged 3 commits intomainfrom
feature/run-it-test-local

Conversation

@andrzej-janczak
Copy link
Copy Markdown
Contributor

@andrzej-janczak andrzej-janczak commented Jun 13, 2025

  • add cleanup of the temporary test fieles
  • allow run it tests for tools locally

@codacy-production
Copy link
Copy Markdown

codacy-production Bot commented Jun 13, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
+0.00%
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (579b70a) 5443 1426 26.20%
Head commit (926f261) 5443 (+0) 1426 (+0) 26.20% (+0.00%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#151) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

…est script

- Updated path normalization logic in run-tool-tests.sh to handle both macOS and Linux environments more effectively by using the repository root directory.
- Introduced a new integration test script (test-tools.sh) to automate testing for each tool in the plugins/tools directory, logging failures and providing feedback on test results.
- Replaced the previous inline test execution logic with a call to the new integration test script (test-tools.sh) for improved maintainability and clarity.
- Ensured the test script is executable before running it.
- Updated run-tool-tests.sh to include a cleanup function that restores the original Codacy configuration and removes generated files after tests.
- Added a new cleanup_all_test_files function in test-tools.sh to remove generated test files across all tool test directories and restore original configurations.
- Implemented traps in both scripts to ensure cleanup occurs even if the script fails.
@andrzej-janczak andrzej-janczak force-pushed the feature/run-it-test-local branch from 53f932c to 926f261 Compare June 16, 2025 13:55
@andrzej-janczak andrzej-janczak enabled auto-merge (squash) June 16, 2025 13:58
@andrzej-janczak andrzej-janczak merged commit dcd97cf into main Jun 16, 2025
10 checks passed
@andrzej-janczak andrzej-janczak deleted the feature/run-it-test-local branch June 16, 2025 20:07
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.

2 participants