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
4 changes: 4 additions & 0 deletions test/e2e-scenario/docs/MIGRATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ bash test/e2e-scenario/runtime/run-scenario.sh <id>
# Metadata and framework validation
bash test/e2e-scenario/runtime/coverage-report.sh
npx vitest run --project e2e-scenario-framework --silent=false --reporter=default

# Opt-in live Vitest scenarios
npm run build:cli
NEMOCLAW_RUN_E2E_SCENARIOS=1 npx vitest run --project e2e-scenarios-live --silent=false --reporter=default
```

## Cleanup rules
Expand Down
4 changes: 4 additions & 0 deletions test/e2e-scenario/docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ npx tsx test/e2e-scenario/scenarios/run.ts --list
npx tsx test/e2e-scenario/scenarios/run.ts --scenarios <id> --plan-only
npx tsx test/e2e-scenario/scenarios/run.ts --scenarios <id> --dry-run
npx tsx test/e2e-scenario/scenarios/run.ts --emit-matrix

# Opt-in Vitest live scenario path
npm run build:cli
NEMOCLAW_RUN_E2E_SCENARIOS=1 npx vitest run --project e2e-scenarios-live --silent=false --reporter=default
```

Override the runtime context directory with `E2E_CONTEXT_DIR=<path>` (default
Expand Down
29 changes: 29 additions & 0 deletions test/e2e-scenario/live/ubuntu-repo-cli-smoke.test.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
// SPDX-License-Identifier: Apache-2.0

import fs from "node:fs";
import path from "node:path";

import { expect, test } from "../framework/e2e-test.ts";

const REPO_ROOT = path.resolve(import.meta.dirname, "../../..");
const CLI_DIST_ENTRYPOINT = path.join(REPO_ROOT, "dist", "nemoclaw.js");

test("ubuntu repo cli smoke", async ({ artifacts, host }) => {
await artifacts.writeJson("scenario.json", {
id: "ubuntu-repo-cli-smoke",
runner: "vitest",
boundary: "repo-local-cli",
});

expect(fs.existsSync(CLI_DIST_ENTRYPOINT), "run `npm run build:cli` before live repo CLI scenarios").toBe(true);

const result = await host.command(process.execPath, ["bin/nemoclaw.js", "--version"], {
artifactName: "repo-cli-version",
cwd: REPO_ROOT,
timeoutMs: 30_000,
});

expect(result.exitCode).toBe(0);
expect(result.stdout).toMatch(/^nemoclaw v/);
});
Loading