版本
menu

Wwise SDK 2025.1.1
Unit Testing Your Plug-in

Developing Unit Tests for Your Plug-in

If you included the unit test infrastructure when you created your plug-in project, you can develop your own tests. Your plug-in project includes templates for two tests: one for the sound engine plug-in implementation and another for the parameters it uses.

The code is located in the SoundEnginePluginTest directory and has the following structure:

SoundEnginePluginTest
├───main.cpp
├───MyNewFXFXParamsTest.cpp
└───MyNewFXFXTest.cpp

The test project uses the Catch2 open-source unit testing framework. For more information about Catch2, such as how to define test cases, see Catch2.

The unit tests are automatically built alongside your plug-in when you use the wp.py build command.

Running Your Unit Tests

To run the unit tests, use the test command with the wp.py script:

python "%WWISEROOT%/Scripts/Build/Plugins/wp.py" test -c Release -x x64 Windows_vc160
参见

此页面对您是否有帮助?

需要技术支持?

仍有疑问?或者问题?需要更多信息?欢迎联系我们,我们可以提供帮助!

查看我们的“技术支持”页面

介绍一下自己的项目。我们会竭力为您提供帮助。

来注册自己的项目,我们帮您快速入门,不带任何附加条件!

开始 Wwise 之旅