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

Add new "testing" group #8

Merged
merged 1 commit into from
Jul 16, 2022
Merged

Add new "testing" group #8

merged 1 commit into from
Jul 16, 2022

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Jul 16, 2022

Featuring Pytest, Hypothesis, and Hypothesis' Ghostwriter CLI.

- Hypothesis
- Ghostwriter
shape: tri
cmap: rainbow # *not* jet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lol

items:
- Pytest
- Hypothesis
- Ghostwriter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing you are maintainer of ghostwriter ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's a CLI tool shipped with Hypothesis.

@Carreau Carreau merged commit a118d95 into Quansight:main Jul 16, 2022
@Carreau
Copy link
Collaborator

Carreau commented Jul 16, 2022

Extra suggestions from slack

Pytest (testing 1/3)
>>> def test_spam(): ... / >>> def test_eggs(): ... / $ pytest my/tests/
"Just test something. Going from zero tests to one test is an infinite improvement."
"My needs are usually simple: running a collection of test functions. I don’t take advantage of the plugins, or fixtures, or any of the other advanced features."
Hypothesis (testing 2/3)
>>> from hypothesis import given
Find more bugs with less work, by generating diverse inputs for your tests.
"It would have been impossible to implement a trustworthy autograd library without Hypothesis."
"We used to hand-craft Dataframes...  It's trivial to generate them with Hypothesis, and our coverage is now close to 90%."
"The only problem is that it's too good at finding bugs, so I can't sneak broken code in before feature freeze."
Ghostwriter (testing 3/3)
$ hypothesis write numpy.matmul / $ hypothesis write gzip.compress
Don't like writing tests, or not sure how to start using Hypothesis?  Who you gonna call?  Ghostwriter!
"Is that AI?" "Well, do if-statements and regular expressions count?"
"Sometimes, magic is just someone spending more time on something than anyone else might reasonably expect. --Teller"

@Zac-HD Zac-HD deleted the group-testing branch July 16, 2022 21:29
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 this pull request may close these issues.

2 participants