Replies: 1 comment
-
I guess you could just use myobj as a global variable? Assuming the tests won't change it |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm a long-time fan of Doctest, but I'm having some trouble setting up the object I'm going to perform tests upon. I assumed I needed a fixture, but the way fixtures are defined does not seem to allow me to specify any initialisation values?
In this case I need to initialise the object under test with some data that is defined at run-time, and parsed from command line arguments. This means that I need to supply my own
main
; pseudo-code below:Beta Was this translation helpful? Give feedback.
All reactions