Document the adapter's agent output settings (AgentMode, ShowStdout, ShowStderr, StackTrace)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 82/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- documentation
Hướng nghiên cứu
Bắt đầu từ tài liệu về adapter trong kho lưu trữ nunit/docs; payload không nêu tên tệp nào, vì vậy hãy tìm trang cài đặt adapter thay vì đoán một đường dẫn. Đọc mục 6 và các bình luận trong nunit/nunit3-vs-adapter#1515 để biết các số liệu đầu ra đã đo, sau đó thêm một mục bao gồm AgentMode, bảng giá trị mặc định theo từng chế độ, ShowStdout/ShowStderr, các thông báo lý do, StackTrace, hành vi của bảng điều khiển VSTest, lý do sử dụng agent và ba ví dụ dotnet test. Hoàn thành nghĩa là mục này đủ đầy đủ để người đọc có thể chọn một chế độ và chạy các ví dụ mà không cần tệp runsettings.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Document the agent output settings from nunit/nunit3-vs-adapter#1515 (point 6 there). The settings ship in the adapter release that includes that work.
Add a section to the adapter documentation that covers:
-
AgentMode:Off,Auto(default) andOn.Autoturns agent mode on when it detects an AI coding agent from its environment variables:CLAUDECODE,CURSOR_AGENT,GEMINI_CLI,COPILOT_CLI,AI_AGENT,CODEX_CLI,AGENT_CLI. These are the same variables that Microsoft.Testing.Platform checks.Offkeeps the traditional output.- Agent mode only changes defaults. A setting that is set explicitly always wins.
-
Defaults per mode, when a setting is not set:
Setting OffOnShowStdout/ShowStderrAll(NoneifConsoleOut=0)FailedStackTraceFullFilteredVerbosity0-1 -
ShowStdout/ShowStderr:Allsends test output to the console as it arrives.Failedkeeps the output only in the test result. The VSTest console logger shows it for failed tests.Nonedrops it.ConsoleOutis now a deprecated alias:0=None,1and2=All.2still sends the output as warnings.
-
Reason messages follow
ShowStdout:Allsends the reason for every outcome,Failedonly for failed tests,Nonenone. A failed test has a reason when a warning is mapped to Failed (MapWarningTo=Failed). -
StackTrace:Full,FilteredorNone.Filteredremoves NUnit-internal and async state-machine frames. It replacesIncludeStackTraceandIncludeStackTraceForSuites, which still work. -
How the console output is produced under VSTest:
- The VSTest console logger prints the block for each failed test (message, stack trace, stdout, stderr) from the test result, at every verbosity.
- Messages that the adapter sends at Informational level are hidden at the default logger verbosity (minimal). Use
--logger "console;verbosity=normal"to see them.
-
What an agent needs from a test run, as the reason for the defaults: the failed tests with message, stack trace and output; the counts, to see whether the run can be trusted; and seldom skip reasons, because
[Ignore]and[Explicit]reasons are the same on every run. -
Command-line examples that need no runsettings file:
dotnet test -- NUnit.AgentMode=On dotnet test -- NUnit.AgentMode=Off dotnet test -- NUnit.ShowStdout=Failed NUnit.StackTrace=Filtered
Measured on a repro with 26 tests, agent mode reduced the console output by 56 % at minimal verbosity and 63 % at normal verbosity. See the comments in nunit/nunit3-vs-adapter#1515.
🤖 Made by @OsirisTerje with Claude
- Ngôn ngữ chính
- Dockerfile
- Star
- 601
- Fork
- 159
- Merge trung bình
- 22 giờ 18 phút
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của nunit/docs
-
Document why output from ASP.NET Core handlers (WebApplicationFactory) is not captured, and the workaroundsCó thể đã có người làm @SeanKilleen đã nhận 36 ngày trước. Đang mởarea:framework type:update
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
-
type:newpage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
Dependency DashboardĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 15/100
-
Move console/engine wiki to docsĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
area:docfx pri:p1 type:design
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
audacity/audacity.github.io#118 ·
-
bug improve content
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 92/100
opensafely/documentation#2102 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 75/100
agentregistry-dev/website#69 ·
-
15.0
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
docs: add SECURITY.md vulnerability reporting policyCó thể đã có người làm @AK-Lmn đã nhận hôm nay. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 72/100
flisk-sh/linux2wasm#12 ·
Maintainer thường phản hồi trong vòng 1 ngày