Skip to content

Commit

Permalink
HYDRA-861 : Add note on what happens before each test
Browse files Browse the repository at this point in the history
  • Loading branch information
debloip-adsk committed Mar 25, 2024
1 parent 18bcfdf commit ec4e6c0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/lib/mayaUsd/render/mayaToHydra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ To add a new Python-only test suite :
```
7. Add the name of your test[...].py file to the list of `TEST_SCRIPT_FILES` in the [current folder's CMakeLists.txt](./CMakeLists.txt)

Some important notes :
- Before each test, a new file will be opened and the renderer will be switched to Hydra. If you need to switch between renderers, you can use the `self.setHdStormRenderer()` and `self.setViewport2Renderer()` methods.

# Best practices
- Don't skip tests unless necessary. If a test requires a certain plugin to be loaded, don't skip the test if the plugin fails to load, as this will falsely be reported as a pass. For such cases, prefer setting the `_extraPluginsToLoad` variable in your test class.

Expand Down

0 comments on commit ec4e6c0

Please sign in to comment.