Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use a different kotlintest spec for tests #10

Closed
serpro69 opened this issue Oct 20, 2019 · 0 comments
Closed

Use a different kotlintest spec for tests #10

serpro69 opened this issue Oct 20, 2019 · 0 comments

Comments

@serpro69
Copy link
Owner

Should consider using a different spec other than FreeSpec for unit tests.

Right now with the FreeSpec the tests are organized as:

"GIVEN xxx" - {
    // some preconditions

    "WHEN yyy" - {
        // some action

        "THEN zzz" { 
            // verification of results
        }
    }
}

However there is very little way to enforce this structure.
It would be better to use some specs where you need to use a pre-defined functions (i.e. FeatureSpec, BehaviorSpec or DescribeSpec) instead of strings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant