-
Notifications
You must be signed in to change notification settings - Fork 36
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 py.test instead of cram #61
Comments
Any headway on this issue? |
The pytest documentation is a nice primer on pytest in general. I suggest you start reading there and try to convert one of our cram tests to pytest. There is also #39. Someone in there posted a link to the functional tests of PyInstaller, which were written with pytest as well, so they may serve as example code. |
To avoid confusion, there is currently one test file which contains multiple tests. This is one test: Lines 19 to 22 in 04dcfe0
So you could start by porting just this test to pytest. Keep in mind that you will also need to port the setup code that comes before this test. Pytest has "fixtures" for this purpose. |
@jgonggrijp started porting the current test to pytest. 😄 I have two questions:
Though for now, I am looking into creating a |
@Pradhvan Nice to know that you're working on this!
That line doesn't create
Sorry, I don't understand this question. Could you clarify?
That sounds like a good idea. |
@jgonggrijp ahh okay got the use of
I meant instead of using |
Today I learned that there is a The answer to your question is "no", though (or at least "not yet"). Please keep using the third-party
|
What do you think about creating offline tests using |
@5j9 I think such an approach would make sense for unittests. Currently, we don't really have those; cram only allows you to write functional tests as it treats the tested tool as a black box. In principle, I'm in favor of having both unittests to check our own internal mechanisms and a functional test (maybe a few) to check for compatibility with pip. Any test at all that runs in pytest is already a good start, though. |
See #39.
The text was updated successfully, but these errors were encountered: