How to install Graphics Test Framework

Hi,

Someone at Unite suggested I check out the Graphics Test Framework and after reading the documentation it seems perfect for my use case.

I’m having trouble finding what the best way to install the Graphics Test Framework (https://github.com/Unity-Technologies/ScriptableRenderPipeline/blob/master/com.unity.testframework.graphics/Documentation~/com.unity.testframework.graphics.md) is.

The Documentation says to use the package manager but searching the package manager for Graphic (with preview packages turned on) doesn’t show anything. Installing the Scriptable Render Pipeline’s package “Core RP Library” doesn’t install it either.

I’d add it as a git dependency but I can’t designate a specific folder in the repo where the package lives, so would mean installing all of the packages in the repo.

Is there further documentation on how to install this package that I’m missing?

Sorry about the confusion.

The best way to add it to your project would be to add it as a local package.

Clone SRP, then follow the steps here Unity - Manual: Install a UPM package from a local folder

Cheers,

I’ve done that but now run into a few issues that I can’t seem to recreate.

When I install it at a package Unity complains that I now have two versions of Newtonsoft.Json in the project. It also sometimes just destroys all of my references and nothing can find anything else (i.e saying that the namespace “Unity.GameEngine” can’t be found).

When I did manage to get it running, some of the tests inside the actual package didn’t pass because they were throwing an exception that a file can’t be found. I think this might relate to an issue I was having with the test runner when some tests would fail Assert methods from other completely unrelated tests*, but I remember one of them saying it’s because it couldn’t load Newtonsoft.Json even though one was still in project (I had kept mine and deleted the one in the package).

  • I’m also still not sure what’s causing this as well. I think it’s got something to do with my loading scenes during the tests, but if I don’t put [UnityTest] at the start of every test (and never use [Test]) and make every test wait for one frame at the end it happens, meaning tests will fail citing assertions from other tests. It doesn’t happen when I run the tests individually though. This was happening before I tried to import the Graphics Testing Framework, but I think the [Test] instances are causing others of my tests to fail that weren’t previously (again with IOExceptions even though no IO takes place during the tests).

How do I resolve the conflict between my version of Newtonsoft and the packages?

Is this package still available? This would be useful in my project.

It appears the URL was removed or changed from the intro message. I’m not 100% positive, but I think you’ll find a lot of it here: GitHub - Unity-Technologies/Graphics-Test-Framework-Examples: Example project for https://github.com/Unity-Technologies/Graphics-Test-Framework