quicktest icon indicating copy to clipboard operation
quicktest copied to clipboard

Omit package for types in current package

Open bep opened this issue 2 years ago • 0 comments

I really like it when I can just paste the output of got into my qt.DeepEquals expect. But if would be even better if the package names would be correct for types in the current package (which, when doing unit tests, isn't uncommon). One example from recently:

 page.PageMatcherParamsConfig{
                  Params: {
                      "foo": "bar",
                  },
                  Target: page.PageMatcher{Path:"", Kind:"page", Lang:"", Environment:""},
}

This test is run from package page. So, after I paste the above I need to remove the page. package "prefix".

This is not a big issue, but it would make quicktest even nicer.

bep avatar Jan 19 '23 11:01 bep