Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails RSpec like testing in Google Go

Tags:

go

I am looking for behavior oriented, English sounding like testing utility for Go. Something like RSpec in Ruby or Jasmine in JavaScript.

I have found go-spec on GitHub, but its broken (hasn't been updated in 2 years and does NOT work with Go 1.

like image 685
if __name__ is None Avatar asked Jun 01 '13 06:06

if __name__ is None


People also ask

Is RSpec TDD or BDD?

RSpec is a testing tool for Ruby, created for behavior-driven development (BDD). It is the most frequently used testing library for Ruby in production applications. Even though it has a very rich and powerful DSL (domain-specific language), at its core it is a simple tool which you can start using rather quickly.

What is the difference between RSpec and cucumber?

The main difference between RSpec and Cucumber are the business readability factor. Cucumber's main draw is that the specification (features) are separate from the test code, so your product owners can provide or review the specification without having to dig through code.

Is RSpec used for unit testing?

RSpec is a unit test framework for the Ruby programming language. RSpec is different than traditional xUnit frameworks like JUnit because RSpec is a Behavior driven development tool.

How do I run a specific test in RSpec?

Running tests by their file or directory names is the most familiar way to run tests with RSpec. RSpec can take a file name or directory name and run the file or the contents of the directory. So you can do: rspec spec/jobs to run the tests found in the jobs directory.


1 Answers

Ginkgo is a BDD-style Golang testing framework: http://onsi.github.io/ginkgo/

like image 78
Jan Laussmann Avatar answered Oct 18 '22 12:10

Jan Laussmann