parent
0e547812eb
commit
9d1b046d30
@ -0,0 +1,29 @@ |
|||||||
|
build: |
||||||
|
go build .
|
||||||
|
|
||||||
|
compare: |
||||||
|
./ttarpit -input ./tests/images/bash_test.png -output none.png -pixel-width 4 -color-depth 16 -dither 0
|
||||||
|
./ttarpit -input ./tests/images/bash_test.png -output floyd.png -pixel-width 4 -color-depth 16 -dither 1
|
||||||
|
./ttarpit -input ./tests/images/bash_test.png -output atkinson.png -pixel-width 4 -color-depth 16 -dither 2
|
||||||
|
|
||||||
|
test: |
||||||
|
go test MY/webapp/tests -c
|
||||||
|
./tests.test
|
||||||
|
|
||||||
|
test_only: |
||||||
|
go test . -c -o
|
||||||
|
./tests.test -test.run TestSomePage
|
||||||
|
|
||||||
|
docs: |
||||||
|
pkgsite --open
|
||||||
|
|
||||||
|
coverage: |
||||||
|
go build -cover -o webapp
|
||||||
|
mkdir -p .coverage
|
||||||
|
echo "GOCOVERDIR=.coverage ./webapp"
|
||||||
|
|
||||||
|
cover_report: |
||||||
|
go tool covdata textfmt -i=.coverage -o coverage.txt
|
||||||
|
go tool cover -func=coverage.txt
|
||||||
|
go tool cover -html=coverage.txt -o coverage.html
|
||||||
|
open coverage.html
|
||||||
Loading…
Reference in new issue