Skip to content

Commit

Permalink
ci: add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
bitxeno committed Nov 23, 2023
1 parent 743fd1d commit cb3d6be
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ jobs:
version: v1.53.2
args: --out-format=colored-line-number --timeout=5m
- run: go mod download
- run: go test -coverprofile=coverage.txt -covermode=atomic ./...
# - run: go test -coverprofile=coverage.txt -covermode=atomic ./...
16 changes: 16 additions & 0 deletions service/service_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package service

import (
"testing"

"github.com/bitxeno/atvloadly/config"
)

func TestDownloadDeveloperDiskImageByVersion(t *testing.T) {
_ = config.Load()

err := downloadDeveloperDiskImageByVersion("https://github.com/haikieu/xcode-developer-disk-image-all-platforms/raw/master/DiskImages/AppleTVOS.platform/DeviceSupport/16.4.zip", "16.4")
if err != nil {
t.Error(err)
}
}

0 comments on commit cb3d6be

Please sign in to comment.