Giter Club home page Giter Club logo

Comments (3)

gward avatar gward commented on July 19, 2024

Argh. So apparently you can't attach arbitrary files to github bugs. How annoying. Anyways, the reproduction is in http://gerg.ca/covtags.zip . Download that file and then:

unzip covtags.zip
cd covtags
export GOPATH=`pwd`
go install -v github.com/axw/gocov/gocov
go install -v -tags=optional mylib
go test -v -tags=optional mylib

So far I've just demonstrated that the package builds and passes its tests. Yes, there is a copy of gocov in there: it was the easiest way to make a self-contained test case.

And now the bug:

./bin/gocov test -v mylib
instrumenting package "mylib"
failed to instrument package(mylib): no test files

Expected outcome: it should run my tests and print the coverage data in json format. It would be entirely reasonable to require that I run gocov test -tags=optional -v mylib in this case.

from gocov.

axw avatar axw commented on July 19, 2024

Thanks for reporting this. Indeed, you should be able to add -tags to gocov test.

from gocov.

gward avatar gward commented on July 19, 2024

Working on a patch. Looks doable...

from gocov.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.