Closed hgm-king closed 4 months ago
Hey @hgm-king I think this is up my alley. If we sort out the current pull request, I will like to work on this issue.
@morukele you bet!
Will wait for you to merge the other PR before I go ahead with this!
@hgm-king Assign this one to me so that I do the update.
I am considering using the Rust standard library to get the file name as the test topic. This can be a helper function.
You got it! sounds like a nice idea
@hgm-king created a PR for this #90
Background
In our
/tests
folder we have integration tests, they each do something liketestsupport::get_brokers_and_topic
where it returns whether to skip, the brokers, and the topic to use. The test skips if no env variables are set, and the broker url and the topic are set as env variables.We want to update the tests so that they create a topic with the same name as the test, like
[testname]-integration
and then delete that topic after running.This will help our tests run in isolation and not be affected by other tests or previous runs.