Document the adapter's agent output settings (AgentMode, ShowStdout, ShowStderr, StackTrace)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 82/100
- Tipo di issue
- Documentazione
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- csharp
- Ambito
- documentation
Direzione di ricerca
Parti dalla documentazione dell’adattatore nel repository nunit/docs; il payload non nomina alcun file, quindi individua la pagina delle impostazioni dell’adattatore invece di indovinare un percorso. Leggi il punto 6 e i commenti in nunit/nunit3-vs-adapter#1515 per i numeri di output misurati, poi aggiungi una sezione che copra AgentMode, la tabella dei valori predefiniti per modalità, ShowStdout/ShowStderr, i messaggi di motivo, StackTrace, il comportamento della console VSTest, la motivazione dell’agente e i tre esempi di dotnet test. Fatto significa che la sezione è abbastanza completa che chi legge possa scegliere una modalità ed eseguire gli esempi senza un file runsettings.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Dockerfile
- Stelle
- 601
- Fork
- 159
- Merge medio
- 22h 18m
- PR unite (30g)
- 6
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nunit/docs
-
Document why output from ASP.NET Core handlers (WebApplicationFactory) is not captured, and the workaroundsForse già presa @SeanKilleen l’ha presa 36 giorni fa. Apertaarea:framework type:update
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
type:newpage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Dependency DashboardAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 15/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
area:docfx pri:p1 type:design
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
Issue simili
-
bug improve content
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 92/100
opensafely/documentation#2102 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 75/100
agentregistry-dev/website#69 ·
-
15.0
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
docs: add SECURITY.md vulnerability reporting policyForse già presa @AK-Lmn l’ha presa oggi. Aperta
Difficoltà 1/5 1-3 ore Idoneità per principianti 72/100
flisk-sh/linux2wasm#12 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 1-3 ore Idoneità per principianti 75/100
I maintainer di solito rispondono entro 1 giorno