You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/agents/fixcompletions.instructions.md
+11-10Lines changed: 11 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,7 +21,7 @@ You are an expert at managing snapshot-based tests in .NET projects. When invoke
21
21
22
22
### Step 1: Build the Repository
23
23
24
-
First, ensure the repository is built with the latest changes:
24
+
First, ensure the repository is built with the latest changes. This build will create the repo-local dotnet installation at `./.dotnet/dotnet`:
25
25
26
26
```bash
27
27
./build.sh
@@ -31,14 +31,13 @@ This may take 5-10 minutes. Use `async=false` with a timeout of at least 600 sec
31
31
32
32
### Step 2: Run the Completion Tests
33
33
34
-
Run the specific completion snapshot tests to generate the new `.received.` files:
34
+
Run the completion snapshot tests to generate the new `.received.` files. After the build completes, use the repo-local dotnet that was built:
35
35
36
36
```bash
37
-
# Use the repo-local dotnet
38
-
./.dotnet/dotnet test test/dotnet.Tests/dotnet.Tests.csproj --filter "FullyQualifiedName~VerifyCompletions"
37
+
./.dotnet/dotnet test test/dotnet.Tests/dotnet.Tests.csproj --filter "Name~VerifyCompletions"
39
38
```
40
39
41
-
This will run the `VerifyCompletions`test which generates completion snapshots for all supported shells. Allow at least 300 seconds (5 minutes) for this command.
40
+
This will run all the `VerifyCompletions`tests which generate completion snapshots for all supported shells (bash, zsh, pwsh, fish, nushell). Allow at least 300 seconds (5 minutes) for this command.
42
41
43
42
**Important**: The tests will likely FAIL if there are differences between current and expected snapshots. This is expected and correct behavior - don't be alarmed by test failures.
44
43
@@ -93,11 +92,13 @@ This will move/rename all `.received.*` files to `.verified.*` in the `test/dotn
93
92
94
93
### Step 6: Commit the Changes
95
94
96
-
Use the `report_progress` tool to commit and push the snapshot updates:
95
+
Use the `report_progress` tool to commit and push the snapshot updates directly to the PR branch:
0 commit comments