Skip to main content

This optional plugin enables Avocado to list and run tests written using the Go programming language.

To install the Golang plugin from pip, use:

$ sudo pip install avocado-framework-plugin-golang

If you’re running Fedora, you can install the package golang-tests and run any of the tests included there. You can try running the math or bufio tests like this:

$ GOPATH=/usr/lib/golang avocado list math
golang math:TestNaN
golang math:TestAcos
golang math:TestAcosh
golang math:TestAsin
... skip ...

And:

$ GOPATH=/usr/lib/golang avocado run math
JOB ID     : 9453e09dc5a035e465de6abd570947909d6be228
JOB LOG    : $HOME/avocado/job-results/job-2021-10-01T13.11-9453e09/job.log
 (001/417) math:TestNaN: STARTED
 (002/417) math:TestAcos: STARTED
 (001/417) math:TestNaN: PASS (0.50 s)
 (002/417) math:TestAcos: PASS (0.51 s)
 (003/417) math:TestAcosh: STARTED
 (004/417) math:TestAsin: STARTED
 (003/417) math:TestAcosh: PASS (0.50 s)
 (004/417) math:TestAsin: PASS (0.51 s)
 (005/417) math:TestAsinh: STARTED
 (006/417) math:TestAtan: STARTED
^C
RESULTS    : PASS 4 | ERROR 0 | FAIL 0 | SKIP 413 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : $HOME/avocado/job-results/job-2021-10-01T13.11-9453e09/results.html
JOB TIME   : 2.76 s

Another option is to try the countavocados examples provided with avocado. Please fetch the avocado code where this example is included.

$ git clone https://github.com/avocado-framework/avocado.git

Also, disable the Module-aware mode, this can be done with the GO111MODULE environment variable:

$ go env -w GO111MODULE=off

Then you can list and run the countavocados tests provided with the plugin:

$ GOPATH=$PWD/avocado/optional_plugins/golang/tests  avocado -V list countavocados
Type   Test                              Tag(s)
golang countavocados:TestEmptyContainers
golang countavocados:TestNoContainers
golang countavocados:ExampleContainers

Resolver             Reference     Info
avocado-instrumented countavocados File name "countavocados" does not end with suffix ".py"
exec-test            countavocados File "countavocados" does not exist or is not a executable file

TEST TYPES SUMMARY
==================
golang: 3

And

 $ GOPATH=$PWD/avocado/optional_plugins/golang/tests  avocado run countavocados
 JOB ID     : c4284429a1ff97cd737b6e6fe1c5a83f91007317
 JOB LOG    : $HOME/avocado/job-results/job-2021-10-01T13.35-c428442/job.log
 (1/3) countavocados:TestEmptyContainers: STARTED
 (2/3) countavocados:TestNoContainers: STARTED
 (1/3) countavocados:TestEmptyContainers: PASS (0.50 s)
 (2/3) countavocados:TestNoContainers: PASS (0.50 s)
 (3/3) countavocados:ExampleContainers: STARTED
 (3/3) countavocados:ExampleContainers: PASS (0.50 s)
RESULTS    : PASS 3 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML   : $HOME/avocado/job-results/job-2021-10-01T13.35-c428442/results.html
JOB TIME   : 2.12 s

Metadata

Release files for avocado-framework-plugin-golang 113.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for avocado-framework-plugin-golang 113.0
File Size Uploaded
avocado_framework_plugin_golang-113.0.tar.gz 5.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for avocado-framework-plugin-golang 113.0
File Interpreter ABI Platform
avocado_framework_plugin_golang-113.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.5 kB

Release files / avocado_framework_plugin_golang-113.0.tar.gz

Download URL avocado_framework_plugin_golang-113.0.tar.gz
Size 5.1 kB
Tags Source
SHA-256 checksum
How to use checksums
d42d638bd4aea985caddac9a7ed6c59aac7b61b366d309550fa2f119397273f6
BLAKE2b-256 checksum
How to use checksums
9c0624ea6a2774baa40d3df63768e5aca5d8a6869fb6935261af5df550ec1dbd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.

Transparency log

Release files / avocado_framework_plugin_golang-113.0-py3-none-any.whl

Download URL avocado_framework_plugin_golang-113.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c3b78a71e02a94743c14baa19814449700d0c743865ac64145d2bdb922f548c0
BLAKE2b-256 checksum
How to use checksums
e48d3f816786b0f56ffb04aa2d2cc89189f4e268897226ec76f1232554bd200d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jan 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

113.0 This release

2 release files

112.0

2 release files

111.0

2 release files

110.0

2 release files

109.0

2 release files

108.0

2 release files

107.0

2 release files

106.0

2 release files

105.0

2 release files

104.0

2 release files

103.0

2 release files

102.0

1 release file

101.0

2 release files

100.1

2 release files

100.0

2 release files

99.0

2 release files

98.0

2 release files

97.0

2 release files

96.0

2 release files

95.0

2 release files

94.0

2 release files

93.0

2 release files

92.3

2 release files

92.2

2 release files

92.1

2 release files

92.0

2 release files

91.0

2 release files

90.0

2 release files

89.0

2 release files

88.1

2 release files

88.0

2 release files

87.0

2 release files

86.0

2 release files

85.0

2 release files

84.0

2 release files

83.0

2 release files

82.2

2 release files

82.1

2 release files

82.0

2 release files

81.0

2 release files

80.0

2 release files

79.0

2 release files

78.0

2 release files

77.0

2 release files

76.0

2 release files

75.1

2 release files

74.0

2 release files

73.0

2 release files

72.0

2 release files

71.0

2 release files

70.0

2 release files

69.3

3 release files

69.2

3 release files

69.1

3 release files

69.0

3 release files

68.0

3 release files

67.0

3 release files

66.0

3 release files

65.0

3 release files

64.0

3 release files

63.0

3 release files

62.0

3 release files

61.0

3 release files

60.0

3 release files

59.0

3 release files

58.0

2 release files

57.0

2 release files

56.0

1 release file

55.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page