obws/tests
2021-03-21 14:32:19 +09:00
..
common Use grcov for better code coverage testing 2021-03-21 14:32:19 +09:00
general.rs Provide structures to define projector geometry 2021-03-20 18:25:58 +09:00
media_control.rs Close all event streams on disconnect 2021-03-11 20:42:45 +09:00
outputs.rs Add more integration tests for client requests 2020-12-31 14:47:54 +09:00
profiles.rs Add more integration tests for client requests 2020-12-31 14:47:54 +09:00
README.md Upgrade to obs-websocket 4.9.0 API 2021-02-15 20:39:26 +09:00
recording.rs Close all event streams on disconnect 2021-03-11 20:42:45 +09:00
replay_buffer.rs Close all event streams on disconnect 2021-03-11 20:42:45 +09:00
scene_collections.rs Add more integration tests for client requests 2020-12-31 14:47:54 +09:00
scene_items.rs Upgrade to obs-websocket 4.9.0 API 2021-02-15 20:39:26 +09:00
scenes.rs Upgrade to obs-websocket 4.9.0 API 2021-02-15 20:39:26 +09:00
sources.rs Upgrade to obs-websocket 4.9.0 API 2021-02-15 20:39:26 +09:00
studio_mode.rs Add integration tests for the remaning requests 2020-12-31 16:37:12 +09:00
transitions.rs Upgrade to obs-websocket 4.9.0 API 2021-02-15 20:39:26 +09:00

Integration tests

To run integration tests, obws will connect to your OBS instance and send several commands against the obs-websocket API to make sure most of the API works as expected.

For this to work, a few settings need to be set and some scene items created so that the tests have items to work on. This has to be done manually as the API doesn't allow to create new sources and scenes or modify specific settings.

  • Use at least OBS version 26.1.2.
  • Create a source collection called OBWS-TEST.
  • Create a profile called OBWS-TEST.
  • Create two scenes called OBWS-TEST-Scene and OBWS-TEST-Scene2.
  • Create two Freetype2 text sources called OBWS-TEST-Text and OBWS-TEST-Text2.
  • Create a browser source called OBWS-TEST-Browser.
  • Create a VLC media source called OBWS-TEST-Media and add a folder with videos to the playlist.
  • Create two transitions called OBWS-TEST-Transition and OBWS-TEST-Transition2.
  • Make sure a global Desktop Audio device is configured.
  • Set any hotkey to P without any modifier keys (like ctrl or alt).