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

Misleading documentation in the README #42

Closed
sotanodroid opened this issue May 30, 2023 · 1 comment · Fixed by #43 · May be fixed by sotanodroid/cute#1
Closed

Misleading documentation in the README #42

sotanodroid opened this issue May 30, 2023 · 1 comment · Fixed by #43 · May be fixed by sotanodroid/cute#1

Comments

@sotanodroid
Copy link
Contributor

sotanodroid commented May 30, 2023

Readme file contains misleading information about Suite cases.

Provided example does not work:

func (i *ExampleSuite) BeforeAll(t provider.T) {
    // Prepare http test builder
    i.testMaker = cute.NewHTTPTestMakerSuite()

    // Preparing host
    host, err := url.Parse("https://jsonplaceholder.typicode.com/")
    if err != nil {
        t.Fatalf("could not parse url, error %v", err)
    }

    i.host = host
}

Package cute contains no NewHTTPTestMakerSuite, instead it has NewHTTPTestMaker.

Please update current documentation on suites

sotanodroid added a commit to sotanodroid/cute that referenced this issue May 30, 2023
sotanodroid added a commit to sotanodroid/cute that referenced this issue May 30, 2023
@sotanodroid
Copy link
Contributor Author

#43

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

Successfully merging a pull request may close this issue.

1 participant