-
Notifications
You must be signed in to change notification settings - Fork 6
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
init web tests #372
init web tests #372
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
overall heading in the right direction. Thank you for your thoroughness in doing this.
Looking forward to seeing it in its final shape
925241b
to
56727e0
Compare
56727e0
to
2059d51
Compare
the mocks setup here isn't particularly fleshed out.. in the interest of time, in the ignorance of apis. would be happy to add a little more here for the sake of learning how to use mocks (incl. generated mocks) better. i suppose this is alright towards the goals of the issue/description? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ransomw1c just out of curiosity, how does this fare regarding the coverage metrics?
2059d51
to
bde1a6d
Compare
Signed-off-by: Ransom Williams <[email protected]>
2af9742
to
e915dc4
Compare
they're ok, i guess? https://4394-138348481-gh.circle-artifacts.com/0/coverage-report/coverage_non_cafs.html#file82 the main omission is tests error-handling, as mentioned in the comments. #377 can include such tests? |
Signed-off-by: Ransom Williams <[email protected]>
2238a57
to
7d7e38f
Compare
start smoke tests on
pkg/web
.specifically, the goal here is to land a demo of how to test the
chi
router used to implement the web front.notice in particular that
pkg/web
's import ofpkg/core
is mocked out in test in order to test the web server implementation.