Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 14 Nov 2022 08:52:00 +0000 GoCoverStats v0.0.5 is a security release #test #testing #security The gocoverstats package just got a v0.0.5 security release on its golang.org dependencies and a minor change: <ul> <li>golang.org/x/tools upgraded from v0.1.10 to v0.2 (security release on tools/crypto)</li> <li>github.com/google/go-cmp upgraded from 0.5.8 to 0.5.9 (test dependency non-security release)</li> </ul><div>One clarification about the default build is that, since it requires at least Go 1.18, paths and symbols are trimmed in the compiled output.</div> 1 points posted by FGM https://gitlab.com/fgmarand/gocoverstats/-/tags/v0.0.5 4779 Mon, 14 Nov 2022 08:49:00 +0000 Plotting go test coverage over time #testing #howto #observability <p>The Go SDK has been including test coverage reports since <a href="https://go.dev/blog/cover" style="box-sizing: inherit; color: rgb(0, 162, 156);">Go 1.2</a>.</p> <p>How can we obtain a time graph of test coverage, without needing a SaaS service? Enter https://gitlab.com/fgmarand/gocoverstats ...</p> 4 points posted by FGM https://osinet.fr/go/en/articles/plotting-go-test-coverage 4681 Sun, 16 Jan 2022 20:24:00 +0000 How to debug a second test run ? #test #testing #delve #goland #debugging Sometimes, tests can succeed on the first run and fail on subsequent ones, or with the -shuffle flag. But then, how can one debug them using the builtin Delve in GoLand while run configurations only run tests once ? 1 points posted by FGM https://osinet.fr/go/en/articles/debug-second-test 4739 Thu, 09 Jun 2022 11:22:00 +0000 Video: Setting Up a Portable Go Testing Rig #testing Set Up a Portable Go Testing Rig with Docker and GoConvey by Alison Rowland 13 points posted by andythomas https://www.youtube.com/watch?v=w2Q4r4BFxXY 2378 Fri, 07 Jul 2017 04:37:00 +0000 Testing Your (HTTP) Handlers in Go #go #testing #http Building a web (HTTP) service in Go? Let's talk about how to unit test your handler functions, injecting the necessary dependencies, and mocking the rest. 12 points posted by Manuel Weiss https://blog.codeship.com/testing-http-handlers-go 854 Wed, 25 May 2016 14:53:00 +0000 Go fuzz – Randomized testing for Go #testing #fuzzing Go-fuzz is a coverage-guided <a href="http://en.wikipedia.org/wiki/Fuzz_testing" style="box-sizing: border-box; -webkit-text-decoration-skip: objects; color: rgb(3, 102, 214); font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; font-size: 16px; -webkit-text-size-adjust: 100%;">fuzzing solution</a>&nbsp;for testing of Go packages. Fuzzing is mainly applicable to packages that parse complex inputs (both text and binary), and is especially useful for hardening of systems that parse inputs from potentially malicious users (e.g. anything accepted over a network). 12 points posted by gopher https://github.com/dvyukov/go-fuzz 114 Sun, 04 Oct 2015 20:30:00 +0000 How to separate Unit and Integration tests #testing 10 points posted by tacu http://pliutau.com/separate_unit_integration_tests 1847 Thu, 02 Mar 2017 08:03:00 +0000 How to fuzz Go packages #tutorial #testing #fuzzing 10 points posted by kenny https://medium.com/@dgryski/go-fuzz-github-com-arolek-ase-3c74d5a3150c 684 Fri, 11 Mar 2016 08:51:00 +0000 How to test Go HTTPS Services #web #https #testing A quick overview about how to write unit, and integration tests for Go HTTPS Services. 8 points posted by Luca Guidi https://blog.dnsimple.com/2017/08/how-to-test-golang-https-services 2612 Fri, 01 Sep 2017 08:54:00 +0000 Property based testing in go #testing 7 points posted by gopher http://www.quii.co.uk/Property-based%20testing%20in%20Go 676 Tue, 08 Mar 2016 19:48:00 +0000 Go's testing package side-effects #testing 7 points posted by lolly http://www.gmarik.info/blog/2016/go-testing-package-side-effects 643 Mon, 29 Feb 2016 22:28:00 +0000 Hey - http load generator, ab replacement #testing #web (The ab replacement formerly known as boom).&nbsp; 7 points posted by lolly https://github.com/rakyll/hey 268 Thu, 15 Oct 2015 20:06:00 +0000 Go test your tests in go with go test #testing 6 points posted by Mike Choi https://deadbeef.me/2018/05/go-test 3363 Tue, 29 May 2018 16:13:00 +0000 Simplistic Mocking in Go #testing After having written many tests with several bloated mocking frameworks in different languages, this is an attempt at a very simplistic utility for mocking in Go 6 points posted by zupzup https://zupzup.org/go-simplistic-mocking 1771 Sat, 18 Feb 2017 18:22:00 +0000 Mockingjay - define the contract between a consumer and producer #testing Mockingjay makes it really easy to check your HTTP integration points. It's fast, requires no coding and is better than other solutions because it will ensure your mock servers and real integration points are consistent so that you never have a green build but failing software. 6 points posted by daenney https://github.com/quii/mockingjay-server 1595 Sat, 21 Jan 2017 23:36:00 +0000 Tuning the go http client library for load testing #testing 6 points posted by Tim Donell http://tleyden.github.io/blog/2016/11/21/tuning-the-go-http-client-library-for-load-testing 1275 Sun, 27 Nov 2016 10:38:00 +0000 Testing database interactions using Go #testing 5 points posted by romanyx https://medium.com/@romanyx90/testing-database-interactions-using-go-d9512b6bb449 3391 Mon, 18 Jun 2018 12:52:00 +0000 Meet moq - easily mock interfaces in go #testing 5 points posted by andythomas https://medium.com/@matryer/meet-moq-easily-mock-interfaces-in-go-476444187d10 1279 Mon, 28 Nov 2016 13:53:00 +0000 Test fixtures in go #testing 5 points posted by kenny http://dave.cheney.net/2016/05/10/test-fixtures-in-go 819 Wed, 11 May 2016 14:11:00 +0000 gomatch - Library created for testing JSON against patterns. #bdd #tdd #testing <h2>Gomatch</h2> <div align="center"><img width="147px" src="https://raw.github.com/jfilipczyk/gomatch/master/logo.png"></div> Library created for testing JSON against patterns. The goal was to be able to validate JSON focusing only on parts essential in given test case so tests are more expressive and less fragile. It can be used with both unit tests and functional tests. 4 points posted by jfilipczyk https://github.com/jfilipczyk/gomatch 3782 Mon, 28 Jan 2019 14:42:00 +0000 polluter - The easiest solution to seed database with Go #seed #database #testing 4 points posted by romanyx https://github.com/romanyx/polluter 3385 Wed, 13 Jun 2018 10:27:00 +0000 How to stub requests to remote hosts with Go #testing 4 points posted by romanyx https://medium.com/@romanyx90/how-to-stub-requests-to-remote-hosts-with-go-6c2c1db32bf2 3349 Wed, 23 May 2018 14:40:00 +0000 Rails-like test fixtures for Go. Write tests against a real database #testing #fixture #rails 4 points posted by andreynering https://github.com/go-testfixtures/testfixtures 934 Tue, 12 Jul 2016 15:54:00 +0000 Tavor - A generic fuzzing and delta-debugging framework #testing #fuzzing 4 points posted by kenny https://github.com/zimmski/tavor 194 Fri, 09 Oct 2015 07:45:00 +0000 orion - provides a DSL to write the acceptance tests #testing #bdd #qualityassurance Orion is a <b>next-generation</b> testing tool.&nbsp; It provides a <b>powerful DSL</b> to write and automate your <b>acceptance tests.</b> 3 points posted by IVAN CORRALES SOLERA https://github.com/wesovilabs/orion 4541 Thu, 18 Feb 2021 06:52:00 +0000 Syzkaller is a distributed, unsupervised, coverage-guided Linux syscall fuzzer #testing #fuzzing 3 points posted by lolly https://github.com/google/syzkaller 217 Mon, 12 Oct 2015 09:22:00 +0000 tester - Lightweight utilities to use with Go's testing package #testing Testing is an integral part of Go; the language provides strong and opinionated support for testing. However, developers who moved from languages like C#, Java, and Python miss the convenience of test utilities like assertions and data providers for data-driven tests. That's why we started Tester: lightweight test utilities to use with Go's testing package. Features: * Assertions that make tests easier to read, write, and debug * Streamlined data providers for data-driven testing (DDT) * Test hooks' hygiene check 2 points posted by Mohamed El-Geish https://github.com/workfit/tester 1883 Tue, 07 Mar 2017 02:41:00 +0000