summaryrefslogtreecommitdiffstats
path: root/app/email_test.go
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2017-05-25 11:01:53 -0400
committerJoram Wilander <jwawilander@gmail.com>2017-05-25 11:01:53 -0400
commit00f48a1908ea80ba88bda78399a3bbfed57b2e9b (patch)
tree35c042b5a45a21142bd5c430344b3041a52eef64 /app/email_test.go
parent554938a8403a00dda36c77b288dafe374dd2430e (diff)
downloadchat-00f48a1908ea80ba88bda78399a3bbfed57b2e9b.tar.gz
chat-00f48a1908ea80ba88bda78399a3bbfed57b2e9b.tar.bz2
chat-00f48a1908ea80ba88bda78399a3bbfed57b2e9b.zip
Adding short unit tests by default (#6494)
Diffstat (limited to 'app/email_test.go')
-rw-r--r--app/email_test.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/app/email_test.go b/app/email_test.go
index a8519ca0f..67457c702 100644
--- a/app/email_test.go
+++ b/app/email_test.go
@@ -12,6 +12,9 @@ import (
)
func TestSendChangeUsernameEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var emailTo string = "test@example.com"
@@ -60,6 +63,9 @@ func TestSendChangeUsernameEmail(t *testing.T) {
}
func TestSendEmailChangeVerifyEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var newUserEmail string = "newtest@example.com"
@@ -111,6 +117,9 @@ func TestSendEmailChangeVerifyEmail(t *testing.T) {
}
func TestSendEmailChangeEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var oldEmail string = "test@example.com"
@@ -158,6 +167,9 @@ func TestSendEmailChangeEmail(t *testing.T) {
}
func TestSendVerifyEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var userEmail string = "test@example.com"
@@ -209,6 +221,9 @@ func TestSendVerifyEmail(t *testing.T) {
}
func TestSendSignInChangeEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var email string = "test@example.com"
@@ -256,6 +271,9 @@ func TestSendSignInChangeEmail(t *testing.T) {
}
func TestSendWelcomeEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var userId string = "32432nkjnijn432uj32"
@@ -349,6 +367,9 @@ func TestSendWelcomeEmail(t *testing.T) {
}
func TestSendPasswordChangeEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var email string = "test@example.com"
@@ -396,6 +417,9 @@ func TestSendPasswordChangeEmail(t *testing.T) {
}
func TestSendMfaChangeEmail(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
Setup()
var email string = "test@example.com"
@@ -480,6 +504,9 @@ func TestSendMfaChangeEmail(t *testing.T) {
}
func TestSendInviteEmails(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
th := Setup().InitBasic()
var email1 string = "test1@example.com"
@@ -555,6 +582,9 @@ func TestSendInviteEmails(t *testing.T) {
}
func TestSendPasswordReset(t *testing.T) {
+ if testing.Short() {
+ t.SkipNow()
+ }
th := Setup().InitBasic()
var siteURL string = "http://test.mattermost.io"