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

Give a special name for generated contract test class #777

Closed
AlicanAkkus opened this issue Nov 2, 2018 · 4 comments
Closed

Give a special name for generated contract test class #777

AlicanAkkus opened this issue Nov 2, 2018 · 4 comments

Comments

@AlicanAkkus
Copy link
Contributor

AlicanAkkus commented Nov 2, 2018

Hi,

I want to give a suggestion. Can I give a test class name to in a contract? I want to specify test name in contract dsl file. It's now generated test with a package name prefix. Is it possible to add a contract project? :)

may be similar to as below;


Contract.make {
    testClassName "RetrieveAllSample"
    request {
        method GET()
        url("/api/v1/samples")
    }
    response {
        status OK()
        headers {
            contentType(applicationJson())
        }
    }
}

I've added testClassName in a contract.

@marcingrzejszczak
Copy link
Contributor

You can't do it. But you can change the method name of that helps. Why would you want to have a different class name?

@AlicanAkkus
Copy link
Contributor Author

thanks, Marcin. there is no any special reason for that except class name readbility.
changing method name could be useful for us 👍

@marcingrzejszczak
Copy link
Contributor

I see. I'll close it for now then and if someone is every interested in this we will consider reopening it.

@AlicanAkkus
Copy link
Contributor Author

thank you 🚀

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

4 participants