rst2pdf/0.95: unable to run tests
See original GitHub issue$ PYTHONPATH=. python3 setup.py test
running test
running egg_info
writing rst2pdf.egg-info/PKG-INFO
writing dependency_links to rst2pdf.egg-info/dependency_links.txt
writing entry points to rst2pdf.egg-info/entry_points.txt
writing requirements to rst2pdf.egg-info/requires.txt
writing top-level names to rst2pdf.egg-info/top_level.txt
reading manifest file 'rst2pdf.egg-info/SOURCES.txt'
writing manifest file 'rst2pdf.egg-info/SOURCES.txt'
running build_ext
test_rst2pdf (unittest.loader._FailedTest) ... ERROR
======================================================================
ERROR: test_rst2pdf (unittest.loader._FailedTest)
----------------------------------------------------------------------
ImportError: Failed to import test module: test_rst2pdf
Traceback (most recent call last):
File "/usr/lib/python3.7/unittest/loader.py", line 154, in loadTestsFromName
module = __import__(module_name)
ModuleNotFoundError: No module named 'rst2pdf.tests.test_rst2pdf'
----------------------------------------------------------------------
Ran 1 test in 0.000s
FAILED (errors=1)
Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=1 errors=1 failures=0>
how do you run tests?
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Unable to run tests - Visual Studio Feedback
Tests.csproj has an unsupported reference to a test framework 'Microsoft.VisualStudio.QualityTools.UnitTestFramework'. To run tests, remove this reference ...
Read more >Unable to Run Certain Unit Tests
I'm running into an issue where I try and run certain unit tests but get a failure as such below. Are there any...
Read more >Can't run a simple Unit Test #Cs #VS19 #MSTest
To see the error you should open the Output pane and in the Show output from: box, you should choose the tests option....
Read more >Running Tests and Viewing Results - Apple Developer
Running Tests and Viewing Results. Running tests and viewing the results is easy to do using the Xcode test navigator, as you saw...
Read more >Java Unit Testing with JUnit and TestNG
To run the test case, right-click on the file ⇒ Run as ⇒ JUnit Test. ... Try modify one of the test to...
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
I’m working on towards a PR that would enable use of pytest. Not sure it’s ready yet, but FYI it’s here: (github). Tested on Python 3.8.1, on Linux (Windows WSL)
It reuses the existing tests (md5, output, etc), and yields a report like:
That’s great to hear @normanlorrain.