Tests written with commented GIVEN, WHEN and THEN regions can be transformed by actually wrapping code within basic blocks called issues.

This can occur in a nested fashion.

Start with Test|TEST, that can wrap any issue.

Given|GIVEN can wrap Given|GIVEN, When|WHEN; or Then|THEN issues.

When|WHEN can wrap When|WHEN or Then|THEN issues.

Then|THEN can only wrap Then|THEN issues.

The Kotlin implementation supports 'suspend' functions: for any issue, there are two ("suspendable" and "nonsuspendable") kinds, that can be toggled between, while in the same foremost issue.

Each issue can be labelled, and return values from corresponding code blocks can be referred to (or addressed, by nesting level), and searched using labels; wildcard matching is available too.

Unlabelled given/then/when are not searchable, their return values are stored as the foremost issue's pending result.

Supporting coroutines for unit or instrumented tests in Android is under development.

Features

  • test
  • test rule
  • GIVEN/WHEN/THEN
  • searchable
  • kotlin
  • suspend
  • DSL

Project Activity

See All Activity >

License

Apache License V2.0

Follow giwth

giwth Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of giwth!

Additional Project Details

Operating Systems

Linux, Android

Intended Audience

Information Technology, Developers, Testers

Programming Language

Kotlin

Related Categories

Kotlin Software Testing Tool, Kotlin Libraries

Registered

2020-04-27