Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.24 KB

testing.md

File metadata and controls

27 lines (18 loc) · 1.24 KB

Testing

Add new tests

Add the flag "-v" to print log messages to each command or see https://github.com/golang/glog/blob/master/glog.go.

How to run all test's manually

  • go test github.com/monbro/opensemanticapi-go-lang/tests/scraper
  • go test github.com/monbro/opensemanticapi-go-lang/tests/database
  • go test github.com/monbro/opensemanticapi-go-lang/tests/analyse // @TODO write tests
  • go test github.com/monbro/opensemanticapi-go-lang/tests/api // @TODO write tests
  • go test github.com/monbro/opensemanticapi-go-lang/tests/requestStruct

How to run benchmark test's manually

  • go test github.com/monbro/opensemanticapi-go-lang/tests/analyse -bench=.

How to run the goconvey test's server

  • ensure that you installed goconvey proper https://github.com/smartystreets/goconvey#installation
  • switch into the folder where you want to watch the tests, e.g. 'cd src/github.com/monbro/opensemanticapi-go-lang/'
  • run the test server$GOPATH/bin/goconvey
  • access the webinterface on http://localhost:8080