Skip to content

docs(e2e-testing): first test by hand, IDE guide, syntax and toolbox pages - #785

Merged
matbmoser merged 4 commits into
eclipse-tractusx:mainfrom
matbmoser:docs/e2e-hello-testlab
Nov 26, 2026
Merged

matbmoser merged 4 commits into
eclipse-tractusx:mainfrom
matbmoser:docs/e2e-hello-testlab

Conversation

@matbmoser

@matbmoser matbmoser commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What

Before teams switch on an AI assistant, they now write and run one small test themselves.

  • New chapter 3, "Hello, TestLab" (15 min). Teams test the hello service, a tiny API with an OpenAPI description. They can work in two ways, shown as tabs: VS Code + TestLab CLI (with JSON-schema completion through the yaml-language-server modeline) or the Test Suite IDE. After that they make the test fail on purpose, then write a negative test. Contract tests (validate/schema) are an optional extra.
  • Hello service (e2e-testing/hello-service/): runs the stock nginx-unprivileged image (pinned by digest), serves JSON files and an OpenAPI description, and needs no build. It deploys with kubectl apply -k (non-root, read-only root filesystem) or runs locally with docker run.
  • examples/hello: the finished project with 3 tests, plus the starter hello-start.zip. A new hello job in e2e-testing-example.yml starts the service and validates, compiles and runs the project.
  • New reference pages:
    • The Test Suite IDE: annotated screenshots of every area, plus Compile, Run and the run dialog.
    • Syntax cheat sheet.
    • The developer toolbox: what is in it, how it comes up, and how the workflow is structured.
  • Renumbering: chapters 3 to 8 become 4 to 9. 4A and 4B now open the template from the IDE that is already open since chapter 3. The handout's box B gets a "Hello service" row (helloUrl in the inventory). The admin pages describe how to deploy it.
  • pages/theme/mkdocs-base.yml adds pymdownx.tabbed and pymdownx.snippets. The chapter includes the real example files, so the text and the tested code cannot drift apart.

Merge order

This branch is stacked on #783. Please merge #783 first; this diff then shrinks to this branch's own commit.

Notes for reviewers

  • The old chapter URLs change (tutorial/03-… to tutorial/04-… and so on), and the session grows to about 75 minutes. The run of show is updated.

  • The hello service's public address is still pending. The kit uses the placeholder hello.example.org. The event's address goes into the private inventory only.

  • How it was checked:

    • mkdocs build --strict, plus a crawl of every internal link and anchor.
    • build_template_zip.py --check and actionlint.
    • The hello project passes with TestLab 1.0.0a24, against the service in Docker and in a kind cluster.
    • The chapter's IDE steps were followed in a local Test Suite through to a green run; the screenshots come from that run.
  • TCK now reads Test Compatibility Kit everywhere. The developer toolbox is named as part of the Tractus-X Starter Kit, linked to feat: add the Eclipse Tractus-X developer toolbox tractusx-starter-kit#29.

AI assistance: this contribution was written with Claude Code and reviewed by the contributor.

🤖 Generated with Claude Code

…pages

Add chapter 3, "Hello, TestLab": before any AI, every team writes one
small test themselves and runs it green, either in VS Code with the
TestLab command line or in the Test Suite IDE. The test targets the
hello service, a tiny API for the workshop (stock unprivileged nginx
serving JSON, with an OpenAPI description), deployable with kustomize
or run locally with Docker. The finished project lives in
examples/hello and runs in the example workflow.

Add three reference pages: the Test Suite IDE (annotated screenshots of
every area, compile, run and the run dialog), a syntax cheat sheet, and
the developer toolbox (what is in it, how it comes up, how the
workflow is structured).

Chapters 3 to 8 move to 4 to 9; 4A and 4B now open the template from
the IDE already open in chapter 3. The handout gains the hello service
address in box B; administrators get its deployment steps.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
Fewer tables and less prose; drop eight screenshots no page needs.

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
…arter Kit

Assisted-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Mathias Moser <mathias.moser@catena-x.net>
@matbmoser
matbmoser marked this pull request as ready for review November 26, 2026 13:10
@matbmoser
matbmoser requested a review from bmg13 as a code owner November 26, 2026 13:10
@matbmoser
matbmoser merged commit ef9ff6c into eclipse-tractusx:main Nov 26, 2026
10 of 12 checks passed
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.

1 participant