mirror of
https://github.com/containers/podman.git
synced 2026-02-05 06:45:31 +01:00
Finish review comments
* Provide hints to AI agents to differentiate between system and integration tests Signed-off-by: Jhon Honce <jhonce@redhat.com>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||

|
||||
|
||||
Quick reference guide for AI agents assisting with Podman development.
|
||||
This document is specifically designed for AI coding assistants (like Claude, ChatGPT, Copilot) to provide context and guidance when helping developers with Podman-related tasks. It contains essential information about codebase structure, development patterns, testing frameworks, and common pitfalls that AI agents should be aware of when assisting with Podman development, debugging, and contributions.
|
||||
|
||||
## Project Overview
|
||||
|
||||
@@ -76,6 +76,8 @@ func (ic *ContainerEngine) Command(ctx context.Context, options entities.Command
|
||||
|
||||
### Integration Tests ([Ginkgo](https://github.com/onsi/ginkgo))
|
||||
|
||||
**Integration Tests** (`test/e2e/`): Test Podman CLI commands end-to-end, using actual binaries and real containers. Use for testing user-facing functionality and CLI behavior.
|
||||
|
||||
```go
|
||||
It("should work correctly", func() {
|
||||
session := podmanTest.Podman([]string{"command", "args"})
|
||||
@@ -86,6 +88,8 @@ It("should work correctly", func() {
|
||||
|
||||
### System Tests ([BATS](https://github.com/bats-core/bats-core))
|
||||
|
||||
**System Tests** (`test/system/`): Test Podman in realistic environments with shell scripts. Use for testing complex scenarios, multi-command workflows, and system integration.
|
||||
|
||||
```bash
|
||||
@test "podman command functionality" {
|
||||
run_podman command --option value
|
||||
|
||||
Reference in New Issue
Block a user