Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
frese committed Aug 14, 2020
1 parent 6854ca5 commit eb181cd
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ $(EXECUTABLE): src/*.go
run: build
open $(APPDIR)

test:
go test -v src/*.go

install:
cp -r $(APPDIR) /Applications

Expand Down
17 changes: 17 additions & 0 deletions src/main_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package main

import (
"testing"
)

func TestIncidents(t *testing.T) {

logInit("stdout") // Initialize logger
cfg := cfgInit() // read configuration file
pdInit(cfg) // Initialize Pagerduty stuff

for _, incident := range pdGetIncidents(cfg) {
t.Log(incident)
}

}

0 comments on commit eb181cd

Please sign in to comment.