Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

Commit

Permalink
HACKING.rst: Improve testing examples
Browse files Browse the repository at this point in the history
  • Loading branch information
demizer committed Dec 2, 2014
1 parent b9cc2d2 commit 720029e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions HACKING.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=============================================================
Guidlines for Contributing to the Go reStructuredText Project
=============================================================
:Modified: Wed Jun 18 00:58 2014
:Modified: Mon Dec 01 23:54 2014

---------------
Getting started
Expand Down Expand Up @@ -48,23 +48,23 @@ Testing

To run the projects tests, simply use::

go test
go test -v . ./parse

To run a specific test, use::

go test -test.run <test_name>
go test -v -test.run <test_name>

The name used can be all or some of the name. For example, to run the first
lexer test for section headers, ``<test_name>`` can be either
``TestLexSectionTitleGood0000`` or ``TitleGood0000``.

To run a test with debug output, use::

go test -test.run <test_name> -debug
go test -v -test.run <test_name> -debug

To examine test coverage, use::

go test -coverprofile c.out && go tool cover -html c.out
go test -v -coverprofile c.out && go tool cover -html c.out

Testdata
========
Expand Down

0 comments on commit 720029e

Please sign in to comment.