Popularity
2.0
Declining
Activity
0.0
Stable
28
3
2
Programming language: Kotlin
License: Apache License 2.0
Tags:
Tests
konsent alternatives and similar libraries
Based on the "Tests" category.
Alternatively, view konsent alternatives based on common mentions on social networks and blogs.
-
Kotest
Powerful, elegant and flexible test framework for Kotlin with additional assertions, property testing and data driven testing -
kotlin-faker
https://serpro69.github.io/kotlin-faker/ Generate realistically looking fake data such as names, addresses, banking details, and many more, that can be used for testing and data anonymization purposes. -
hikaku
A library that tests if the implementation of a REST-API meets its specification. -
balin
Balin is an automation library for Kotlin. It's basically a Selenium-WebDriver wrapper inspired by Geb. -
SeleniumBuilder
Kotlin DSL for Selenium. Provide a possibility to write tests in Kotlin type-safe builders style -
arbitrater
Arbitrater is a Kotlin library for creating arbitrary instances of classes by reflection for use in testing. In contrast to POJO generators, it supports Kotlin's optional parameters and nullable types. -
aspen
Aspen is a simple test runner for Kotlin that allows you to write tests using your own DSL. -
mock-fuel
JUnit 5 extension to easily test with the http client Fuel for Kotlin
Appwrite - The Open Source Firebase alternative introduces iOS support
Appwrite is an open source backend server that helps you build native iOS applications much faster with realtime APIs for authentication, databases, files storage, cloud functions and much more!
Promo
appwrite.io
Do you think we are missing an alternative of konsent or a related project?
Popular Comparisons
README
Konsent
An acceptance testing library for Kotlin.
[KonsentExampleTests](src/test/java/com/oneeyedmen/konsent/KonsentExampleTests.kt) shows how to write a test.
@RunWith(Konsent::class)
@Preamble(
"As a developer named Duncan",
"I want to know that example.com is up and running")
class KonsentExampleTests : ChromeAcceptanceTest() {
val duncan = actorNamed("Duncan")
@Scenario(1) fun `Example_dot_com loads`() {
Given(duncan).loadsThePageAt("http://example.com")
Then(duncan) {
shouldSee(thePageLocation, pathContains("example.com"))
shouldSee(thePageTitle, equalTo("Example Domain"))
shouldSee(thePageContent, containsALink("More information...", "http://www.iana.org/domains/example"))
}
}
@Scenario(2, "Following a link from example.com") fun cant_have_dots_in_quoted_method_names() {
Given(duncan).loadsThePageAt("http://example.com")
When(duncan).followsTheLink("More information...", "http://www.iana.org/domains/example")
Then(duncan).shouldSee(thePageLocation, equalTo(URI("http://www.iana.org/domains/reserved")))
}
@Scenario(3) fun `Dispensing with the given when then`() {
duncan.he.loadsThePageAt("http://example.com")
duncan.he.followsTheLink("More information...", "http://www.iana.org/domains/example")
duncan.he.shouldSee(thePageLocation, equalTo(URI("http://www.iana.org/domains/reserved")))
}
}
This writes an approved file
Feature: Konsent Example Tests
As a developer named Duncan
I want to know that example.com is up and running
Scenario: Example_dot_com loads
Given Duncan loads the page at "http://example.com"
Then he sees the page location "location contains "example.com"
and the page title is equal to "Example Domain"
and the page content contains a link [More information...](http://www.iana.org/domains/example)
Scenario: Following a link from example.com
Given Duncan loads the page at "http://example.com"
When he follows the link [More information...](http://www.iana.org/domains/example)
Then he sees the page location is equal to http://www.iana.org/domains/reserved
Scenario: Dispensing with the given when then
Duncan loads the page at "http://example.com"
he follows the link [More information...](http://www.iana.org/domains/example)
he sees the page location is equal to http://www.iana.org/domains/reserved
Konsent is available at Maven central.