question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

failed to test my transcripts

See original GitHub issue

As 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:closed
  • Created 5 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
tleonhardtcommented, Sep 20, 2018

@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.

0reactions
tetocommented, Sep 30, 2018

thanks !

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found