Skip to content

Bellatrix.Cli 3.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 22:01

What's new in 3.2.0

Added

  • .bellatrix/config.json: the project settings for your repository (the test project per domain: path, name, root
    namespace or base package, build command; and the test-case folder), with a JSON schema
    (schemas/bellatrix-config.v1.schema.json, "version": 1). Commit it. Its $schema points at the schema in the
    release tag (…/BELLATRIX-Agent/v<version>/schemas/…), so it never changes under you.
  • bellatrix init finds the BELLATRIX test project per domain (C# *.csproj, Java pom.xml / build.gradle,
    TypeScript package.json that reference BELLATRIX; the framework's own projects are skipped), proposes it and, in
    a terminal, asks you to confirm. New flags --project <path> / --project desktop=<path>,web=<path> and
    --test-cases-dir <dir> (default: SPECTRA's tests.dir, else test-cases). Without a terminal, several
    candidates are a usage error (exit 2) and nothing is written.
  • bellatrix config show and bellatrix config validate.
  • The init JSON has a config field (path, status, values, commit, warnings).
  • docs/contributing/RELEASE-CHECKLIST.md; the release workflow checks that the tag serves the config schema before
    it publishes anything.
  • Published on NuGet.org: dotnet tool install -g Bellatrix.Cli. The release workflow pushes the package with
    NuGet Trusted Publishing (no long-lived API key) and still attaches the .nupkg and its .sha256 to the GitHub
    release.

Fixed

  • The skills no longer hard-code a sample project (Demo.DesktopTests, MyProject.WebTests, demo-desktop-tests,
    my-web-tests, …) or its build command. They use {project.*} placeholders from .bellatrix/config.json and ask
    you when it has no project.

  • One test-case convention in every skill: {testCasesDir}/{suite}/TC-{id}.md. Previously some skills read
    tests/{suite}/… and others test-cases/{suite}/…. The folder is recorded in .bellatrix/config.json
    (default: SPECTRA's tests.dir, else test-cases).

  • Skill wording that predates the CLI: the desktop skills no longer say a "driver server" or the CLI manages the
    driver (the user runs it; the CLI reports driver_unreachable), reattach-session is described correctly (a new
    driver session id under the same --session name), and garbled sentences in the desktop SPECTRA skill are fixed.

  • The C# desktop batch flow no longer says "build → run → fix-if-failing"; like the rest of the skills it is build
    only and the user runs the tests.

  • The desktop generator agent's frontmatter no longer lists made-up tool ids (and no test-running tools).

  • TypeScript skills call the BELLATRIX-JavaScript test runner as npx bellatrix ./tests …, so it is not confused
    with the .NET bellatrix CLI.

Changed

  • --no-interaction now has an effect: init is the one command that may prompt, and only in a terminal. Ending input at
    the prompt (Ctrl+C, Ctrl+Z, a closed terminal) cancels init with nothing written.
  • init contract rule R9: re-running init / update-skills never overwrites .bellatrix/config.json without
    --regenerate; missing values are merged in, an invalid file is left untouched.

Install

dotnet tool install -g Bellatrix.Cli --version 3.2.0   # or: dotnet tool update -g Bellatrix.Cli

From the attached Bellatrix.Cli.3.2.0.nupkg instead (offline or pinned): docs/INSTALL-PREVIEW.md.

SHA-256 of Bellatrix.Cli.3.2.0.nupkg: 39d466879c9aa5b38fcf7c1b642c26c1e4c704596f7c46af8e9942580e51c9b5

Full Changelog: https://github.com/AutomateThePlanet/BELLATRIX-Agent/commits/v3.2.0