From 2e6aa4b0bdcf1229557c6963fc996b628586c202 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Thu, 20 Feb 2020 11:33:24 -0400 Subject: [PATCH] update test code and add codecov support --- .circleci/config.yml | 4 ++-- robotgo_test.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 77020a4..36c788d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -20,5 +20,5 @@ jobs: - run: go get -v -t -d ./... - run: xvfb-run go test -v ./... # codecov.io - # - run: go test -v -covermode=count -coverprofile=coverage.out - # - run: bash <(curl -s https://codecov.io/bash) + - run: go test -v -covermode=count -coverprofile=coverage.out + - run: bash <(curl -s https://codecov.io/bash) diff --git a/robotgo_test.go b/robotgo_test.go index d3a4469..3dfd33d 100644 --- a/robotgo_test.go +++ b/robotgo_test.go @@ -35,7 +35,7 @@ func TestSize(t *testing.T) { x, y = GetScaleSize() tt.NotZero(t, x) - tt.NotZero(t, x) + tt.NotZero(t, y) } func TestMoveMouse(t *testing.T) {