Skip to content

Conversation

@maciejaszek
Copy link
Member

This PR overhauls tests and focuses especially on:

  • moving to one test framework (as currently both Testify and Gomega/Ginkgo are used),
  • organize more tests into suites and subtests,
  • run more tests in parallel,
  • remove repetitive code.

@maciejaszek maciejaszek self-assigned this Dec 20, 2022
@maciejaszek maciejaszek force-pushed the tests branch 2 times, most recently from ac932a5 to 4cb22ff Compare December 23, 2022 13:00
Tests in requests packaged are overhauled:
* Unification: Ginkgo/Gomega is dropped in favour of Testify.
* Tests are mostly organized into Testify suites.
* Subtests are used extensively.
* Subtests are mostly run in parallel.

Some reasons why Testify has been chosen:
* It's more popular (widely used) than Ginkgo.
* Some of Ginkgo functionality was deprecated ans will be removed in V2.
* It's easier for Golang devs to start writing tests in Testify.

Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
Tests were rewritten from ginkgo to testify, new testcases were added to
improve coverage. For reason of dropping ginkgo please see commit
aeca476.

Additionaly deprecated ioutil function was dropped and documentation was
updated with information about potential panic in config Unmarshal.

Signed-off-by: Maciej Wereski <maciey@members.fsf.org>
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.

1 participant