failed to test my transcripts
See original GitHub issueAs I made major changes in my app, I am removing unittests to just rely on transcript-based testing.
I have generated a transcript following https://cmd2.readthedocs.io/en/latest/freefeatures.html#transcript-based-testing then I run my script https://github.com/teto/mptcpanalyzer/blob/new_plots/tests/run_transcripts.sh (I used the absolute path to rule out any relative path problem).
$ tests/run_transcripts.sh
WARNING: mptcpanalyzer may require a custom wireshark. Check github for mptcp patches streaming.
E
======================================================================
ERROR: runTest (cmd2.cmd2.Cmd.run_transcript_tests.<locals>.TestMyAppCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nix/store/1ajhfmk8kcdc3jm5f6nivsarj0dbaw63-python3.6-cmd2-0.9.4/lib/python3.6/site-packages/cmd2/transcript.py", line 53, in runTest
self._test_transcript(fname, transcript)
File "/nix/store/1ajhfmk8kcdc3jm5f6nivsarj0dbaw63-python3.6-cmd2-0.9.4/lib/python3.6/site-packages/cmd2/transcript.py", line 70, in _test_transcript
line = next(transcript)
StopIteration
----------------------------------------------------------------------
Ran 1 test in 0.001s
I am on
Python 3.6.6 (default, Jun 27 2018, 05:47:41)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import cmd2
>>> cmd2.__version__
'0.9.4'
As a note to myself, it’s not crystal clear how to run a shellscript instead of unittest in pip setup.py test but I found the trick !:
cmdclass={
"test": RunTests,
# 'publish':
},
Issue Analytics
- State:
- Created 5 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
How to Request Failed Classes Be Taken Off College ...
How to Request Failed Classes Be Taken Off College Transcripts · Review Your Coursework. Review all coursework and tests to ensure they have...
Read more >I didn't receive my transcript. What do I do? - My Student Center
If you or your recipient has not yet received your transcript, check the status of your order to make sure your school has...
Read more >All Your Transcript Questions, Answered
We're answering all your questions concerning your transcripts and how it affects applying for your health care education.
Read more >Transcript and Test Score Requirements | CSU
Official Transcripts and Test Scores Required Prior to Registration ; Chico, Only if needed for admission ; Dominguez Hills, Only if needed for...
Read more >Withholding Academic Transcripts and Diplomas - Finaid
Such a policy should state that official academic transcripts will be withheld for failure to pay tuition, for default on an education debt...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@kotfu I looked into this issue a little more. The transcript testing error only occurs when the last command in the transcript has no output.
thanks !