Skip to content

Topic 30 - Add Testing Resources for End-To-End Tests#39

Merged
blorp-goes-the-derp merged 13 commits intodevelopfrom
topic-30
Jun 10, 2021
Merged

Topic 30 - Add Testing Resources for End-To-End Tests#39
blorp-goes-the-derp merged 13 commits intodevelopfrom
topic-30

Conversation

@blorp-goes-the-derp
Copy link
Copy Markdown
Collaborator

@blorp-goes-the-derp blorp-goes-the-derp commented May 29, 2021

  • Reorganized tests; all tests requiring either observation or distinct manual setup (e.g. the two cases that must be run against auth-secured OBS) have been moved to a 'manual' test package. All others can run automatically if OBS is running.
  • Added test scene collection and resources
  • Added (Python) scripts and README describing how to work with the anonymized scene collection to setup for tests
  • Added observation tests, whereby the viewer looks at the console and watches OBS for the result
  • Added a few E2E tests that verify the API returns what we expect from the scene collection
    • Should note these were tricky due the callbacks being in a different thread from the test runner; I've solved this by using a test queue to communicate between callbacks and the test runner

Closes #30 when merged

TinaTiel added 11 commits May 21, 2021 20:52
…ration to silence other logs and make it easier to read/fo
…d), static resource, and README describing how to work with the resources.
…ng impl to a problematic class during some debugging. Woudl like to refactor this project eventually to use Lombok.
…est the vlc media sources. Also, added a test demonstrating how to use a queue to collect responses from callbacks in a test (as due to them being in a separate thread, it is othewise impossible to get the responses in the junit thread.
… toggle play/pause feature in Palakis' libarary
…o verify all is in the scene collection as expected.
… first are in the 'manual' package. By modifying the gradle build file, now those tests can be excluded and the rest of the integration tests can be run automatically
TinaTiel added 2 commits May 29, 2021 16:52
… getPreviousResponseAs(...) is doing more clear.
…events running the tests manually. Will need to revisit with a gradle/junit guru...
@blorp-goes-the-derp
Copy link
Copy Markdown
Collaborator Author

Okay, thaaaat should be the last commit. I disabled the test exclusions in the integrationTest task because it was preventing running the manual tests manually. Should revisit with a gradle+junit guru, I would need to take a step back and properly learn gradle.

@blorp-goes-the-derp blorp-goes-the-derp merged commit 0b0c61d into develop Jun 10, 2021
@blorp-goes-the-derp
Copy link
Copy Markdown
Collaborator Author

Went ahead and merged this since there hasn't been feedback and these are all just tests.

Comment thread src/main/java/net/twasi/obsremotejava/OBSCommunicator.java
@blorp-goes-the-derp blorp-goes-the-derp deleted the topic-30 branch June 10, 2021 17:50
@blorp-goes-the-derp blorp-goes-the-derp mentioned this pull request Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Common Test Resources - SceneCollections, Browser Sources, Images, etc.

2 participants