Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
81e67c04
Unverified
Commit
81e67c04
authored
Jun 08, 2016
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update docs
Signed-off-by:
Mike Danese
<
mikedanese@google.com
>
parent
13f36d51
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
coding-conventions.md
docs/devel/coding-conventions.md
+1
-1
testing.md
docs/devel/testing.md
+3
-3
No files found.
docs/devel/coding-conventions.md
View file @
81e67c04
...
@@ -109,7 +109,7 @@ following Go conventions - `stateLock`, `mapLock` etc.
...
@@ -109,7 +109,7 @@ following Go conventions - `stateLock`, `mapLock` etc.
tests
tests
- Table-driven tests are preferred for testing multiple scenarios/inputs; for
- Table-driven tests are preferred for testing multiple scenarios/inputs; for
example, see [TestNamespaceAuthorization](../../test/integration/auth_test.go)
example, see [TestNamespaceAuthorization](../../test/integration/auth
/auth
_test.go)
- Significant features should come with integration (test/integration) and/or
- Significant features should come with integration (test/integration) and/or
[end-to-end (test/e2e) tests](e2e-tests.md)
[end-to-end (test/e2e) tests](e2e-tests.md)
...
...
docs/devel/testing.md
View file @
81e67c04
...
@@ -73,7 +73,7 @@ passing, so it is often a good idea to make sure the e2e tests work as well.
...
@@ -73,7 +73,7 @@ passing, so it is often a good idea to make sure the e2e tests work as well.
*
All packages and any significant files require unit tests.
*
All packages and any significant files require unit tests.
*
The preferred method of testing multiple scenarios or input is
*
The preferred method of testing multiple scenarios or input is
[
table driven testing
](
https://github.com/golang/go/wiki/TableDrivenTests
)
[
table driven testing
](
https://github.com/golang/go/wiki/TableDrivenTests
)
-
Example:
[
TestNamespaceAuthorization
](
../../test/integration/auth_test.go
)
-
Example:
[
TestNamespaceAuthorization
](
../../test/integration/auth
/auth
_test.go
)
*
Unit tests must pass on OS X and Windows platforms.
*
Unit tests must pass on OS X and Windows platforms.
-
Tests using linux-specific features must be skipped or compiled out.
-
Tests using linux-specific features must be skipped or compiled out.
-
Skipped is better, compiled out is required when it won't compile.
-
Skipped is better, compiled out is required when it won't compile.
...
@@ -189,9 +189,9 @@ See `go help test` and `go help testflag` for additional info.
...
@@ -189,9 +189,9 @@ See `go help test` and `go help testflag` for additional info.
-
This includes kubectl commands
-
This includes kubectl commands
*
The preferred method of testing multiple scenarios or inputs
*
The preferred method of testing multiple scenarios or inputs
is
[
table driven testing
](
https://github.com/golang/go/wiki/TableDrivenTests
)
is
[
table driven testing
](
https://github.com/golang/go/wiki/TableDrivenTests
)
-
Example:
[
TestNamespaceAuthorization
](
../../test/integration/auth_test.go
)
-
Example:
[
TestNamespaceAuthorization
](
../../test/integration/auth
/auth
_test.go
)
*
Each test should create its own master, httpserver and config.
*
Each test should create its own master, httpserver and config.
-
Example:
[
TestPodUpdateActiveDeadlineSeconds
](
../../test/integration/pods_test.go
)
-
Example:
[
TestPodUpdateActiveDeadlineSeconds
](
../../test/integration/pods
/pods
_test.go
)
*
See
[
coding conventions
](
coding-conventions.md
)
.
*
See
[
coding conventions
](
coding-conventions.md
)
.
### Install etcd dependency
### Install etcd dependency
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment