docs icon indicating copy to clipboard operation
docs copied to clipboard

Create unit tests

Open adrcunha opened this issue 8 years ago • 9 comments

"unit tests" in this context is not restricted to code, might even include linting markdown files.

adrcunha avatar Jul 03 '18 19:07 adrcunha

@adrcunha Would you consider our current testing sufficient to close out this issue? Between the checks built in to Prow and @mattmoor 's Sockpuppet bot, I feel pretty good about our coverage.

samodell avatar Dec 17 '18 22:12 samodell

TL;DR: No.

Currently there are no unit tests. At all:

https://github.com/knative/docs/blob/df75e7e4885915bdb17f2a88046c79aa0d0d468a/test/presubmit-tests.sh#L28

Also there are no build tests, and the E2E tests are just checking that Knative Serving starts (which is not affected by any changes in this repo).

Currently there's nothing preventing doc from getting broken code merged (e.g., samples), or even bad markdown files (I dunno how often Matt's bot lints/validates/fixes them). Although some of the infrastructure required is in place (e.g., https://github.com/knative/test-infra/pull/192), it's not active yet.

adrcunha avatar Dec 17 '18 22:12 adrcunha

Thanks for the background. Is there any kind of timeline for this work yet?

samodell avatar Dec 17 '18 22:12 samodell

Not that I am aware of. But we can definitely bring this up in the next documentation or productivity meeting.

adrcunha avatar Dec 17 '18 23:12 adrcunha

That would be great! I'll add you to the agenda for the documentation working group on 1/8.

samodell avatar Dec 20 '18 18:12 samodell

Issues go stale after 90 days of inactivity. Mark the issue as fresh by adding the comment /remove-lifecycle stale. Stale issues rot after an additional 30 days of inactivity and eventually close. If this issue is safe to close now please do so by adding the comment /close.

Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

/lifecycle stale

Stale issues rot after 30 days of inactivity. Mark the issue as fresh by adding the comment /remove-lifecycle rotten. Rotten issues close after an additional 30 days of inactivity. If this issue is safe to close now please do so by adding the comment /close.

Send feedback to Knative Productivity Slack channel or file an issue in knative/test-infra.

/lifecycle rotten

It seems that the amount of testing we currently have is enough.

/close

adrcunha avatar Jan 02 '20 18:01 adrcunha

@adrcunha: Closing this issue.

In response to this:

It seems that the amount of testing we currently have is enough.

/close

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

knative-prow-robot avatar Jan 02 '20 18:01 knative-prow-robot