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

Improve testing #6

Open
maelle opened this issue Jun 18, 2020 · 6 comments
Open

Improve testing #6

maelle opened this issue Jun 18, 2020 · 6 comments

Comments

@maelle
Copy link
Collaborator

maelle commented Jun 18, 2020

#7 adds one test, with no auth required thanks to vcr + my trick from rredlist tests.

Now,

@maelle
Copy link
Collaborator Author

maelle commented Jun 20, 2020

@DaveParr I'd be curious to hear your thoughts, I see that at the moment you don't test the new post content either in dev.to.ol. 🙂

@maelle maelle changed the title Add tests Improve testing Jun 20, 2020
@DaveParr
Copy link

Not yet, but that's basically just due to lazyness with side-projects 😛

I will in the nearish future, on the face of it I haven't spotted a reason I can't with my current workflow and vcr recording methods. Have you spotted a problem I haven't?

@maelle
Copy link
Collaborator Author

maelle commented Jun 25, 2020

No I haven't spotted any problem but I was wondering how "unit" our unit tests are if we only test that the API returns no error, e.g. should we test the post that the website has is correct somehow.

It might be useless!

@DaveParr
Copy link

So in my case, I get in the response body a json string in that string (after parsing I think), I get an item called body_html which contains what I understand to be the html that will displayed by dev.to. I was at least just initially planning on checking that it was there and not empty :)

@maelle
Copy link
Collaborator Author

maelle commented Apr 4, 2023

For reference on testing https://books.ropensci.org/http-testing/

@DaveParr
Copy link

@maelle Looks like a great resource!

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

2 participants