Skip to content

The server's binary gets all the test flags #72

Description

@oleksandr

I've noticed weird flags appear when I print the -help of my binary:

Usage of app/bin/server:
-conf="etc/config.yml": Configuration file
-ip="0.0.0.0": IP address to bind server to. Example: 127.0.0.1
-port=8080: Port number to bind server to. Example: 8080
-test.bench="": regular expression to select benchmarks to run
-test.benchmem=false: print memory allocations for benchmarks
-test.benchtime=1s: approximate run time for each benchmark
-test.blockprofile="": write a goroutine blocking profile to the named file after execution
-test.blockprofilerate=1: if >= 0, calls runtime.SetBlockProfileRate()
-test.cpu="": comma-separated list of number of CPUs to use for each test
-test.cpuprofile="": write a cpu profile to the named file during execution
-test.memprofile="": write a memory profile to the named file after execution
-test.memprofilerate=0: if >=0, sets runtime.MemProfileRate
-test.parallel=1: maximum test parallelism
-test.run="": regular expression to select tests and examples to run
-test.short=false: run smaller test suite to save time
-test.timeout=0: if positive, sets an aggregate time limit for all tests
-test.v=false: verbose: print additional output

As far as I can see from:

$ go list -f '{{join .Deps "\n"}}' github.com/stretchr/goweb | grep testing
testing

Goweb can be the reason... Any ideas how to get rid of these flags?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions