Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
node-version: 22.x
cache: pnpm
- name: Test
run: pnpm test:ci
- name: Publish Test Report
uses: ctrf-io/github-test-reporter@0f299074936c32ccaab5be5230511f6b2b9080aa # v1.0.28
with:
report-path: 'dev-packages/*/ctrf/*.json'
summary-report: true
file-report: true
if: always()
# Failures are annotated inline on the PR by Vitest's built-in `github-actions`
# reporter (enabled via the shared @eclipse-glsp/vitest-config preset when GITHUB_ACTIONS is set).
run: pnpm test
8 changes: 0 additions & 8 deletions dev-packages/cli/.mocharc.e2e.json

This file was deleted.

7 changes: 0 additions & 7 deletions dev-packages/cli/.mocharc.json

This file was deleted.

3 changes: 0 additions & 3 deletions dev-packages/cli/.nycrc

This file was deleted.

19 changes: 0 additions & 19 deletions dev-packages/cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ Options:
-h, --help display help for command

Commands:
coverageReport [options] Generate a test coverage report for a glsp component
checkHeaders [options] <rootDir> Validates the copyright year range (end year) of license header files
updateNext|u [options] [rootDir] Updates all `next` dependencies in GLSP project to the latest version
generateIndex [options] <rootDir...> Generate index files in a given source directory.
Expand Down Expand Up @@ -61,24 +60,6 @@ Options:
-h, --help display help for command
```

## coverageReport

The `coverageReport` command can be used to create a full nyc test coverage report for a pnpm mono repository.
Individual coverage reports for each package are created and then combined to a full report.

```console
$ glsp coverageReport -h
Usage: glsp coverageReport [options]

Generate a test coverage report for a glsp component

Options:
-p, --projectRoot <projectRoot> The root directory of the GLSP component (default:
"<cwd>")
-c, --coverageScript <script> Script command of the package root for creating coverage reports (default: "test:coverage")
-h, --help display help for command
```

## updateNext

```console
Expand Down
9 changes: 5 additions & 4 deletions dev-packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,16 @@
"lint:ci": "pnpm lint -o eslint.xml -f checkstyle",
"prepublishOnly": "pnpm build",
"start": "node dist/cli.js",
"test": "mocha --config .mocharc.json",
"test": "vitest run",
"test:all": "pnpm test && pnpm test:e2e",
"test:ci": "pnpm test --reporter mocha-ctrf-json-reporter",
"test:coverage": "nyc pnpm test",
"test:e2e": "pnpm build && mocha --config .mocharc.e2e.json",
"test:coverage": "vitest run --coverage",
"test:e2e": "pnpm build && vitest run --config vite.config.e2e.ts",
"test:watch": "vitest",
"watch": "node esbuild.js --watch",
"watch:tsc": "tsc --watch"
},
"devDependencies": {
"@eclipse-glsp/config-test": "workspace:*",
"@types/semver": "^7.7.1",
"commander": "^14.0.0",
"esbuild": "~0.28.1",
Expand Down
9 changes: 1 addition & 8 deletions dev-packages/cli/src/cli.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import { expect } from 'chai';
import { describe, it, expect } from 'vitest';
import { Command } from 'commander';
import { CheckHeaderCommand } from './commands/check-header';
import { CoverageReportCommand } from './commands/coverage-report';
import { GenerateIndex } from './commands/generate-index';
import { RelengCommand } from './commands/releng/releng';
import { RepoCommand } from './commands/repo/repo';
Expand Down Expand Up @@ -46,12 +45,6 @@ describe('cli', () => {
// ── Top-level ──────────────────────────────────────────────────────

describe('top-level commands', () => {
describe('coverageReport', () => {
it('should have expected options', () => {
expect(optionLongs(CoverageReportCommand)).to.include.members(['--projectRoot', '--coverageScript']);
});
});

describe('checkHeaders', () => {
it('should accept a <rootDir> argument', () => {
expect(CheckHeaderCommand.registeredArguments).to.have.lengthOf(1);
Expand Down
2 changes: 0 additions & 2 deletions dev-packages/cli/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/
import { CheckHeaderCommand } from './commands/check-header';
import { CoverageReportCommand } from './commands/coverage-report';
import { GenerateIndex } from './commands/generate-index';
import { RelengCommand } from './commands/releng/releng';
import { RepoCommand } from './commands/repo/repo';
Expand All @@ -24,7 +23,6 @@ import { COMMAND_VERSION, LOGGER, baseCommand, initGlobby } from './util';
const app = baseCommand() //
.version(COMMAND_VERSION)
.name('glsp')
.addCommand(CoverageReportCommand)
.addCommand(CheckHeaderCommand)
.addCommand(UpdateNextCommand)
.addCommand(GenerateIndex)
Expand Down
109 changes: 0 additions & 109 deletions dev-packages/cli/src/commands/coverage-report.ts

This file was deleted.

Loading