Option to skip certain tests
See original GitHub issueHey,
I’m not using dot at all, and my CI system gets this error:
======================================================================
ERROR: test_dotexport.test_tree_png
Tree to png.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/.eggs/nose-1.3.7-py3.6.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/tests/test_dotexport.py", line 84, in test_tree_png
RenderTreeGraph(root).to_picture(join(GENPATH, "tree1.png"))
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/anytree/exporter/dotexporter.py", line 232, in to_picture
check_call(cmd)
File "/usr/lib64/python3.6/subprocess.py", line 306, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'
======================================================================
ERROR: test_dotexporter.test_tree_png
Tree to png.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/.eggs/nose-1.3.7-py3.6.egg/nose/case.py", line 198, in runTest
self.test(*self.arg)
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/tests/test_dotexporter.py", line 112, in test_tree_png
DotExporter(root).to_picture(join(GENPATH, "tree1.png"))
File "/tmp/xKi9Azf8/rpms/python-anytree/rpmbuild/BUILD/anytree-2.6.0/anytree/exporter/dotexporter.py", line 232, in to_picture
check_call(cmd)
File "/usr/lib64/python3.6/subprocess.py", line 306, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib64/python3.6/subprocess.py", line 287, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib64/python3.6/subprocess.py", line 729, in __init__
restore_signals, start_new_session)
File "/usr/lib64/python3.6/subprocess.py", line 1364, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'dot': 'dot'
----------------------------------------------------------------------
Ran 76 tests in 0.106s
FAILED (errors=2)
Test failed: <unittest.runner.TextTestResult run=76 errors=2 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=76 errors=2 failures=0>
error: Bad exit status from /var/tmp/rpm-tmp.xpP9kw (%check)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.xpP9kw (%check)
I’m building it using an rpm spec file and this section is failing:
%check
%{__python3} setup.py test
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
maven: How can I skip test in some projects via command line ...
Run all tests (the above configuration includes all **/*Test.java test source files). mvn test ; Skip all tests across all modules. mvn -DskipTests=true...
Read more >Maven Surefire Plugin – Skipping Tests
To skip running the tests for a particular project, set the skipTests property to true. ... You can also skip the tests via...
Read more >Pytest options - how to skip or run specific tests - qavalidation
Pytest provides an option as skipif to use a condition to skip a test, if the condition evaluates to true, then only test...
Read more >Skipping Tests with Maven - Baeldung
In this quick tutorial, we'll explore all the possible commands and options to skip tests using Maven. 2. Maven Lifecycle.
Read more >How to run, ignore or skip Jest tests, suites and files
Use .only to run only certain tests. Run a single Jest test in a file using .only ; Use .skip to ignore Jest...
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 FreeTop 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
Top GitHub Comments
yes. May take a moment.
The idea is to have a anytreelib project, which only includes the anytree core functionality as you need it. anytree will stay as is, as many users make use of the importers and exporters. anytree may then depend on anytreelib. Just not sure if this might frustrate users, as anytree tried to keep the deps to zero (except six).