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.

Instructions to run integrations tests fail on tox

See original GitHub issue

Additional environment details (Operating System, Cloud provider, etc):

Ubuntu 14.04, Python 2.7.6

Steps to reproduce the issue:

  1. Follow instructions at https://github.com/DataDog/integrations-core/blob/e3985fe43853f6ee3bb11e8d9d20a18ca12ae340/docs/dev/README.md

Describe the results you received:

$ tox 
ERROR: No setup.py file found. The expected location is:
  /home/sday/src/DataDog/integrations-core/setup.py
You can
  1. Create one:
     https://packaging.python.org/tutorials/distributing-packages/#setup-py
  2. Configure tox to avoid running sdist:
     http://tox.readthedocs.io/en/latest/example/general.html#avoiding-expensive-sdist

Describe the results you expected:

Tests should run.

Additional information you deem important (e.g. issue happens only occasionally):

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
stevvooecommented, Jun 18, 2018

Looks good:

tests/test_kubernetes_state.py::test__update_kube_state_metrics PASSED                                                                                                                                                                                                                                         [ 33%]
tests/test_kubernetes_state.py::test__update_kube_state_metrics_v040 PASSED                                                                                                                                                                                                                                    [ 66%]
tests/test_kubernetes_state.py::test__join_custom_labels PASSED                                                                                                                                                                                                                                                [100%]

============================================================================================================================================== 3 passed in 0.29 seconds ==============================================================================================================================================
flake8 recreate: /home/sday/src/DataDog/integrations-core/kubernetes_state/.tox/flake8
flake8 installdeps: flake8
flake8 installed: configparser==3.5.0,enum34==1.1.6,flake8==3.5.0,mccabe==0.6.1,pycodestyle==2.3.1,pyflakes==1.6.0
flake8 runtests: PYTHONHASHSEED='1803360524'
flake8 runtests: commands[0] | flake8 .
______________________________________________________________________________________________________________________________________________________ summary _______________________________________________________________________________________________________________________________________________________
  unit: commands succeeded
  flake8: commands succeeded
  congratulations :)
0reactions
mascicommented, Jun 13, 2018

@stevvooe can you try again running the tests with tox from the master branch? cd kubernates_state && tox should work now, let me know how it goes.

Read more comments on GitHub >

github_iconTop Results From Across the Web

General tips and tricks — tox 3.4.0 documentation
When a command (defined by commands = in tox.ini ) fails, it has a non-zero exit code, and an InvocationError exception is raised...
Read more >
error in integration test using tox #183 - OpenKMIP/PyKMIP
We are trying to test open source KMIP server PYKMIP. For the same we have used tox utility which runs unit and integration...
Read more >
unable to run test using tox.ini file
I was trying to run the below test via tox.ini file. from services.snowflake_api import SnowflakeApi from unittest import TestCase from mock ...
Read more >
Running Commands with Tox
The first thing to configure tox to do is to run the tests for a package. The most minimal tox file for a...
Read more >
Continuous Integration testing with GitHub Actions using ...
Creating a new workflow · Specifying branches · Setting up jobs with a build matrix · Job instructions · Failed tests because of...
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