Skip to content

How start embeddedServer at Test ? #11

@CMingTseng

Description

@CMingTseng

Dear Sir

very thx your post https://medium.com/@math21/testing-a-ktor-server-part-i-route-testing-84f8e82454d7 & demo

i have QA

as the code

embeddedServer(Netty, port = config.port) {

i can start a ktor server at normal mode ( src)

i look the test sourceSet

you craete a test demo

class ApplicationTest {

if i export " embeddedServer(Netty, port = config.port) {...}" as a class (Yes i want run ktor serve at Andorid or other JVM like)

how let us test this class at Test mode ? or how start embeddedServer at Test ?

THX

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions