JvmBridge.Testing 26.11.16.9471

dotnet add package JvmBridge.Testing --version 26.11.16.9471
                    
NuGet\Install-Package JvmBridge.Testing -Version 26.11.16.9471
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="JvmBridge.Testing" Version="26.11.16.9471" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="JvmBridge.Testing" Version="26.11.16.9471" />
                    
Directory.Packages.props
<PackageReference Include="JvmBridge.Testing" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add JvmBridge.Testing --version 26.11.16.9471
                    
#r "nuget: JvmBridge.Testing, 26.11.16.9471"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package JvmBridge.Testing@26.11.16.9471
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=JvmBridge.Testing&version=26.11.16.9471
                    
Install as a Cake Addin
#tool nuget:?package=JvmBridge.Testing&version=26.11.16.9471
                    
Install as a Cake Tool

JvmBridge.Testing

Test helpers for JvmBridge agents, for xUnit v3.

  • [JdkData(8)] supplies a Jdk for each requested Java major. The JDK is the checksum-pinned archive from JvmBridge's own inventory, downloaded once and cached; set JVMBRIDGE_JDK_<major> (or JVMBRIDGE_JDK_<major>_HOTSPOT, JVMBRIDGE_JDK_<major>_OPENJ9) to use an installed one. An installed JDK must be the Java version and implementation the test asks for, which it is asked once per run; otherwise, or when the directory does not exist, the test fails and says what it found. A major with no pinned JDK for the platform skips the test with the reason. Java 6 and 7 are pinned Zulu builds for linux-x64 and win-x64, and Java 7 also for win-x86 and osx-x64; CompileAsync(sources, release: 6) needs a JDK from 6 to 11, and release: 7 one from 7 to 19.
  • jdk.CompileAsync("Fixtures/**/*.java") compiles Java sources with the JDK and returns the class path.
  • jdk.RunAsync("pkg.Main", classPath, agent: PublishedAgent.Find("MyAgent")) runs a class, optionally with the agent, and returns the exit code and combined output. JavaRunOptions.WorkingDirectory starts it in a directory of its own.
  • jdk.StartAsync(...) starts a class the same way and returns a JavaProcess while it runs, such as a server: WaitForOutputAsync("Done ("), WriteLineAsync("stop") and WaitForExitAsync(). Disposing it ends the program and the processes it started.
  • PublishedAgent.Find(name) finds a published agent for the current runtime identifier in artifacts/agent/<rid> (or JVMBRIDGE_AGENT_DIRECTORY) and skips the test when it has not been published.
  • ClassFileAssert.MatchesSnapshot(bytes, "Snapshots/run.txt", method: "run") compares the javap -c-style disassembly of a class or method with a stored snapshot, so a patch's effect on the bytecode is reviewed in a diff. A relative path is resolved against the test project's directory. A mismatch writes <snapshot>.received next to it (add *.received to .gitignore), and JVMBRIDGE_UPDATE_SNAPSHOTS=1 accepts what a run produced.
  • ClassFileAssert.Calls and DoesNotCall assert on patched class bytes without a JVM. Pass a descriptor to match the whole member reference, not only the owner and name.
  • PinnedArtifact (any HTTP or HTTPS address) and MavenArtifact (Maven coordinates) pin a jar of the application by its SHA-256, download it once and cache it in a directory named after the checksum; [PinnedArtifactData] and [MavenArtifactData] supply them to theories. Run patch.ApplyToJar(path) and ClassFileAssert.LinksAsync(jdk, helper, [path], patches) against them.
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
26.11.16.9471 0 11/16/2026
26.11.16.2576 124 11/16/2026
26.11.15.9621 126 11/15/2026
26.11.12.3660 943 11/12/2026
26.11.12.3002 73 11/12/2026
26.11.11.5979 80 11/11/2026
26.11.10.9660 105 11/11/2026
26.11.10.9155 70 11/10/2026
26.11.10.8181 73 11/10/2026
26.11.10.7408 72 11/10/2026
26.11.10.7204 75 11/10/2026
26.11.10.6716 77 11/10/2026
26.11.9.2167 97 11/9/2026
26.11.7.4779 171 11/7/2026
26.11.6.1035 124 11/6/2026
26.11.5.9127 101 11/5/2026
26.11.5.8973 85 11/5/2026
26.11.5.8626 102 11/5/2026
26.11.4.7033 101 11/4/2026
26.11.3.3660 115 11/3/2026
Loading failed

- feat(testing): ✨ started JVMs that keep running, in a working directory of their own (b947831)