feat: remove gocheck from test suites#1883
Conversation
8bbad39 to
afed1b4
Compare
ec26c87 to
d2b0e6d
Compare
SimoneDutto
left a comment
There was a problem hiding this comment.
i think we can row get rid of juju-db from the sys-deps in the makefile right?
Are we are missing the cleanup for each test? Or i've just missed it?
|
@SimoneDutto The change to use |
|
@kian99 one question: |
When we create a model in the suite, we call |
aaaa, thanks! |
SimoneDutto
left a comment
There was a problem hiding this comment.
thanks for the effort!
Description
This PR does a few things, particularly it:
You will notice any test that relied on gocheck and our integration suites has had very similar changes.
gc.Equalare nowqt.Equal.type fooSuite structhave been removed if unneeded or adapted into a smallSetupFooTests()function that is called at the start of each test that needs the custom setup.c := qt.New(t)ands := jimmtest.SetupJimmEnv(c)or some variant at the start of each test to setup the integration test environment.There are still some trace uses of gocheck around the codebase used in unit tests that I will get rid of in a follow-up.
Fixes JUJU-9240
Engineering checklist