1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/serverless-testing-go-functions.adoc
2021-05-18 14:47:05 +00:00

18 lines
517 B
Plaintext

// Module included in the following assemblies
//
// * /serverless/functions/serverless-developing-go-functions.adoc
[id="serverless-testing-go-functions_{context}"]
= Testing Golang functions
Golang functions can be tested locally on your computer. In the default project that is created when you create a function using `kn func create`, there is a `handle_test.go` file which contains some basic tests. These tests can be extended as needed.
.Procedure
* Run the tests:
+
[source,terminal]
----
$ go test
----