Skip to content
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

Begin to write integration tests for service + controller #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

AntoineAugusti
Copy link
Contributor

I'm opening this PR even if it's not finished yet as I'd love some feedback. My goal is to write some integration tests for the service and controller components mainly.

This PR could also be a great opportunity to set up some kind of continuous integration, to fight against regressions.

My questions:

  • which remaining tests would be useful to write?
  • should I put tests in a different package?
  • should I separate tests in different files, as I am testing service + controller here?
  • should I improve some parts of my code?


for k := range wc.handlers {
allowed = append(allowed, GetMethodName(k))
}

wc.allowed = strings.Join(allowed, ",")
// Sort the HTTP methods
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mainly done for testing purposes

@AntoineAugusti
Copy link
Contributor Author

Ping @buro9

@AntoineAugusti AntoineAugusti force-pushed the integration-tests-service-controller branch from b66b1ed to bd93717 Compare December 18, 2015 17:01
@AntoineAugusti
Copy link
Contributor Author

Any comments @buro9?

@AntoineAugusti
Copy link
Contributor Author

Bump ;)

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