Atrium-Ktor
This project provides Atrium assertion functions (for the fluent API) for different Ktor types.
Setup
repositories {
jcenter()
// either use jcenter or the repository on the next line
// maven { url "http://dl.bintray.com/tegonal/oss" }
}
dependencies {
testImplementation "com.tegonal.atrium.ktor:atrium-ktor-client:0.3.0"
testImplementation "com.tegonal.atrium.ktor:atrium-ktor-server-tests:0.3.0"
}
Depending on your use case you do not need all of the dependencies. The naming of the sub-projects follow the one of Ktor.
For instance, if you write tests by using kto-server-tests
(meaning something along the line of withTestApplication(...)
)
then it suffices to depend only on atrium-ktor-server-tests
Also, the shown dependencies above are JVM dependencies.
Currently atrium-ktor-client
is also available for Common (-common
), Android (-android
) and JS (-js
).
Add the corresponding suffix, e.g. atrium-ktor-client-js
for JS.
Example
Have a look at ktor-seed's ApplicationTest.
Contribute
You are welcome to contribute to this project:
- open a bug report if something does not work as you expected
- create a feature request if you miss something
- contribute in another way, we appreciate it
๐
License
Atrium-Ktor is licensed under EUPL 1.2.