Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Test coverage for backend #28

Open
wants to merge 33 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
6bc3044
Adding GET login test
oleksiyp Nov 1, 2017
c993d0b
Covered Login with tests
oleksiyp Nov 2, 2017
cdac7fb
Refactoring LoginKtTest
oleksiyp Nov 2, 2017
1e8db37
Refactoring LoginKtTest
oleksiyp Nov 2, 2017
d870b53
Covered IndexKt with tests
oleksiyp Nov 2, 2017
b8b3149
Upgrade to MockK 1.2
oleksiyp Nov 2, 2017
19b90d3
Using newer mockDsl in LoginKtTest
oleksiyp Nov 3, 2017
daa5166
Adding PostThoughtKtTest
oleksiyp Nov 3, 2017
73034a1
Adding forbidden case
oleksiyp Nov 3, 2017
c91da67
Added PostThoughtKtTest
oleksiyp Nov 3, 2017
cfbbbca
Ignoring test till next release
oleksiyp Nov 3, 2017
841757a
Revert: gradle-wrapper.properties
oleksiyp Nov 3, 2017
d98ed9d
Adding DeleteKtTest
oleksiyp Nov 4, 2017
f6a7cd3
Adding ViewThoughtKtTest
oleksiyp Nov 4, 2017
313c961
Adding UserPageKt
oleksiyp Nov 4, 2017
00a0500
Adding ApplicationPageTest
oleksiyp Nov 4, 2017
e00e79e
Adding RegisterKtTest
oleksiyp Nov 4, 2017
bd4b582
Using non-Nullable, getting rid of assertk
oleksiyp Nov 5, 2017
c901dbb
Logging config for tests
oleksiyp Nov 5, 2017
90ac181
Logging config for tests
oleksiyp Nov 5, 2017
ad5a990
Release version of MockK
oleksiyp Nov 5, 2017
38e88d1
Adding ThinkerDatabaseTest
oleksiyp Nov 6, 2017
b09f9de
Adding tests to ThinkerDatabaseTest
oleksiyp Nov 6, 2017
a69a90d
Adding tests to ThinkerDatabaseTest
oleksiyp Nov 6, 2017
ccd8402
Revert: gradle-wrapper.properties
oleksiyp Nov 6, 2017
ff25f46
Upgrade to version 1.4
oleksiyp Nov 9, 2017
8e09252
Upgrade to version 1.5
oleksiyp Nov 16, 2017
a25bd5b
Upgrade to version 1.5.1 Auto-hinting
oleksiyp Nov 17, 2017
fac616a
Upgrade to version 1.5.1
oleksiyp Nov 17, 2017
5688aa5
Upgrade to Version 1.5.2
oleksiyp Nov 17, 2017
d3a1ca9
Upgrade to Version 1.5.3
oleksiyp Nov 21, 2017
933f264
Merge branch 'master' of github.com:Kotlin/kotlin-fullstack-sample
oleksiyp Feb 17, 2019
58afe2d
Upgrade to 1.9.1
oleksiyp Feb 17, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Upgrade to version 1.5
  • Loading branch information
oleksiyp committed Nov 16, 2017
commit 8e092526e667bda87923d58f1f6582d6de724e3c
19 changes: 0 additions & 19 deletions .idea/runConfigurations/Backend____Jetty.xml

This file was deleted.

4 changes: 1 addition & 3 deletions backend/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
plugins {
id "jacoco"
id "com.zoltu.application-agent" version "1.0.8"
}

group = 'org.jetbrains.demo.thinkter'
Expand All @@ -10,7 +9,6 @@ apply plugin: 'kotlin'
apply plugin: 'application'

dependencies {
agent "io.mockk:mockk-agent:1.4"

compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
compile "org.jetbrains.kotlin:kotlin-reflect:$kotlin_version"
Expand All @@ -25,7 +23,7 @@ dependencies {
testCompile "org.jetbrains.ktor:ktor-test-host:$ktor_version"
testCompile "org.jsoup:jsoup:1.9.1"

testCompile "io.mockk:mockk:1.4"
testCompile "io.mockk:mockk:1.5"

compile "org.jetbrains.ktor:ktor-jetty:$ktor_version"
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
Expand Down
1 change: 0 additions & 1 deletion backend/test/org/jetbrains/demo/thinkter/DeleteKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class DeleteKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
1 change: 0 additions & 1 deletion backend/test/org/jetbrains/demo/thinkter/IndexKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import org.junit.Test
import org.junit.runner.RunWith
import java.nio.charset.Charset

@RunWith(MockKJUnit4Runner::class)
class IndexKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
1 change: 0 additions & 1 deletion backend/test/org/jetbrains/demo/thinkter/LoginKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class LoginKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.junit.Ignore
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class PostThoughtKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
1 change: 0 additions & 1 deletion backend/test/org/jetbrains/demo/thinkter/RegisterKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class RegisterKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
1 change: 0 additions & 1 deletion backend/test/org/jetbrains/demo/thinkter/UserPageKtTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class UserPageKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import org.junit.Before
import org.junit.Test
import org.junit.runner.RunWith

@RunWith(MockKJUnit4Runner::class)
class ViewThoughtKtTest {
val route = mockk<Routing>()
val dao = mockk<ThinkterStorage>()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import org.junit.Test
import org.junit.runner.RunWith
import java.time.LocalDateTime

@RunWith(MockKJUnit4Runner::class)
class ThinkterDatabaseTest {
val connection = mockk<DatabaseConnection>("db")
fun tx() = connection.createTransaction()
Expand Down
3 changes: 2 additions & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#Wed Nov 08 07:41:52 CET 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.2.1-all.zip