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
- Do not add `NUnit3TestAdapter` or `NUnit.Microsoft.Testing.Platform` to a host-test project.
33
-
- Rider always shows **two**`HostSmokeTests` trees (native NUnit + DevTools). Only the second/adapter node runs in-host. Proven settings: **Testing Platform** → enable, **uncheck** “Ignore projects discovered by other providers” (else MTP is invisible because `[Test]` is already claimed). **VSTest**→ enable adapters, keep project mask `*Tests*` (ProjectReference to our adapter is not enough for Rider to show the VSTest suite). Do not add `executor://DevTools.NUnit.V1/` to the adapter ignore list. Do not add `NUnit3TestAdapter`. Visual Studio does not double-discover this way.
34
-
- Test Explorer refresh must not start a host. Discovery is local PE metadata. `HostLaunch=false` still starts a matching-version host on **run** if none is open.
33
+
- Rider **MTP + net48**: two `HostSmokeTests` trees (native NUnit PSI + DevTools MTP). Only the MTP/DevTools node runs in-host. **MTP + net8**: one tree (native NUnit does not claim the MTP exe). Visual Studio does not double-discover. There is **no**csproj/attribute/ExecutorUri hook to suppress native NUnit; ricaun’s 1-suite explorer is VSTest + NUnit 3, not a discovery API we are missing. Current Rider Testing Platform UI: enable MTP. The old “Ignore projects discovered by other providers” checkbox may be absent — do not block on it. **VSTest**sample: enable adapters, keep project mask `*Tests*` (ProjectReference alone is not enough). Do not add `executor://DevTools.NUnit.V1/` to the adapter ignore list. Do not add `NUnit3TestAdapter`. Sample `Intentional_failure_for_demo` is an expected `Assert.Fail`. A suite-level `ArgumentException` “same key already added” after running all MTP cases is IDE result merge, not a host failure.
34
+
- Test Explorer refresh / `dotnet test --list-tests` / `Runner discover`must not start a host. Discovery is local PE metadata. `HostLaunch=false` still starts a matching-version host on **run** if none is open.
35
35
- Autodesk configs flatten host obj/bin. MTP overrides `AppendTargetFrameworkToOutputPath=true` so its three TFMs never share a folder (CS2012 / MSB3713). Do not collapse `TargetFrameworks` on packable projects.
36
36
- net48 Test Explorer "could not be discovered": `CreateTestSession` failed to load `Unsafe` 6.0. Package props generate binding redirects and pin Unsafe 6.1.2. Adapter does not hit this because it ILRepacks.
37
37
- MTP samples are `OutputType=Exe`. Generation snapshot must treat `.exe` as a managed test assembly and skip `Log/` / `TestResults/` / `*.diag`.
Copy file name to clipboardExpand all lines: docs/product/nunit-host-testing.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,8 +10,8 @@ controller ships in that installer. The live CAD host executes the tests.
10
10
11
11
**Experimental.** Discover / run / progress work end-to-end. `RevitDevTool.NUnit`
12
12
(MTP) is published independently of the RevitDevTool installer. Version is
13
-
`<Version>` in `source/DevTools.NUnit.Mtp/DevTools.NUnit.Mtp.csproj` (starts at
14
-
`0.0.1`). Run `.github/workflows/PublishNUnit.yml` from GitHub Actions to pack
13
+
`<Version>` in `source/DevTools.NUnit.Mtp/DevTools.NUnit.Mtp.csproj` (currently
14
+
`0.0.4`). Run `.github/workflows/PublishNUnit.yml` from GitHub Actions to pack
15
15
and push nuget.org (OIDC Trusted Publishing). VSTest stays in-tree and is not
16
16
published.
17
17
@@ -31,11 +31,11 @@ VSTest (`DevTools.NUnit.TestAdapter`). Keep them on **separate** test projects.
31
31
32
32
| Project | Role |
33
33
|---------|------|
34
-
|`DevTools.NUnit.Core`|`nunit/*` wire contracts, timing, protocol version |
34
+
|`DevTools.NUnit.Core`|`nunit/*` wire contracts, timing, protocol version. Out-of-process Runner client (`Client/`, linked into MTP/VSTest, not in the host DLL)|
35
35
|`DevTools.NUnit.Host`| Native NUnit runtime in the CAD host |
0 commit comments