Skip to content

Commit

Permalink
Usinng ModelSuite for the generated model tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paganotoni committed Nov 29, 2019
1 parent d9c4e3c commit 6602fc7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions genny/model/_fixtures/models/widget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package models

import "testing"

func Test_Widget(t *testing.T) {
t.Fatal("This test needs to be implemented!")
func (ms *ModelSuite) Test_Widget() {
ms.Fail("This test needs to be implemented!")
}
4 changes: 2 additions & 2 deletions genny/model/templates/-path-/-name-_test.go.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ package {{.opts.TestPackage}}

import "testing"

func Test_{{.model.Name.Proper}}(t *testing.T) {
t.Fatal("This test needs to be implemented!")
func (ms *ModelSuite) Test_{{.model.Name.Proper}}() {
ms.Fail("This test needs to be implemented!")
}

0 comments on commit 6602fc7

Please sign in to comment.