-
Notifications
You must be signed in to change notification settings - Fork 423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split out Test_NewResources into smaller tests #252
Labels
area/testing
Issues or PRs related to testing
Comments
dibyom
added a commit
to dibyom/triggers
that referenced
this issue
Jan 7, 2020
We used to have a function called NewResources that we later split into smaller functions -- ResolveParams and ResolveResources. However, in our unit tests, we kept the Test_NewResources function leading to tests that were more verbose/needed more setup than necessary. This commit splits the tests into smaller more targeted tests. Fixes tektoncd#252 Signed-off-by: Dibyo Mukherjee <[email protected]>
3 tasks
dibyom
added a commit
to dibyom/triggers
that referenced
this issue
Jan 7, 2020
We used to have a function called NewResources that we later split into smaller functions -- ResolveParams and ResolveResources. However, in our unit tests, we kept the Test_NewResources function leading to tests that were more verbose/needed more setup than necessary. This commit splits the tests into smaller more targeted tests. Fixes tektoncd#252 Signed-off-by: Dibyo Mukherjee <[email protected]>
dibyom
added a commit
to dibyom/triggers
that referenced
this issue
Jan 7, 2020
We used to have a function called NewResources that we later split into smaller functions -- ResolveParams and ResolveResources. However, in our unit tests, we kept the Test_NewResources function leading to tests that were more verbose/needed more setup than necessary. This commit splits the tests into smaller more targeted tests. Fixes tektoncd#252 Signed-off-by: Dibyo Mukherjee <[email protected]>
tekton-robot
pushed a commit
that referenced
this issue
Jan 8, 2020
We used to have a function called NewResources that we later split into smaller functions -- ResolveParams and ResolveResources. However, in our unit tests, we kept the Test_NewResources function leading to tests that were more verbose/needed more setup than necessary. This commit splits the tests into smaller more targeted tests. Fixes #252 Signed-off-by: Dibyo Mukherjee <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
template/event_test.go contains a Test_NewResources function that tests both ResolveParams and ResolveResources. So, there is quite a bit of setup required to test each function.
We should separate it out into smaller tests that test each of those two exported functions separately
The text was updated successfully, but these errors were encountered: