-
Notifications
You must be signed in to change notification settings - Fork 69
Conversation
pip install -c constraints.txt -e . | ||
pip install -U -c constraints.txt -r requirements-dev.txt | ||
- name: Run Tests | ||
run: make runtime_integration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These tests targeted a file that no longer exists
test/ibm/runtime/test_runtime_integration.py
test1: | ||
python -m unittest -v test/ibm/test_ibm_backend.py test/ibm/test_account_client.py test/ibm/test_ibm_job_states.py test/ibm/test_tutorials.py test/ibm/test_basic_server_paths.py test/ibm/test_proxies.py test/ibm/test_ibm_integration.py test/ibm/test_ibm_logger.py test/ibm/test_filter_backends.py test/ibm/test_registration.py | ||
python -m unittest -v test/integration/test_ibm_backend.py test/integration/test_account_client.py test/integration/test_ibm_job_states.py test/integration/test_tutorials.py test/integration/test_basic_server_paths.py test/integration/test_proxies.py test/integration/test_ibm_integration.py test/integration/test_ibm_logger.py test/integration/test_filter_backends.py test/integration/test_registration.py | ||
|
||
test2: | ||
python -m unittest -v test/ibm/test_ibm_qasm_simulator.py test/ibm/test_serialization.py test/ibm/test_jupyter.py test/ibm/test_composite_job.py test/ibm/test_ibm_provider.py | ||
python -m unittest -v test/integration/test_ibm_qasm_simulator.py test/integration/test_serialization.py test/integration/test_jupyter.py test/integration/test_composite_job.py test/integration/test_ibm_provider.py | ||
|
||
test3: | ||
python -m unittest -v test/ibm/test_ibm_job_attributes.py test/ibm/test_ibm_job.py test/ibm/websocket/test_websocket.py test/ibm/websocket/test_websocket_integration.py | ||
python -m unittest -v test/integration/test_ibm_job_attributes.py test/integration/test_ibm_job.py test/integration/websocket/test_websocket.py test/integration/websocket/test_websocket_integration.py |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guess we should migrate this later and get rid of the need to maintain hard-coded lists of file names here. This is easy to do with the new folder structure now.
@@ -73,37 +73,6 @@ def test_pass_unreachable_proxy(self, qe_token, qe_url): | |||
IBMProvider(qe_token, qe_url, proxies=proxies) | |||
self.assertIn("ProxyError", str(context_manager.exception)) | |||
|
|||
def test_provider_init_non_auth_url(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've split off unit tests from this integration test file and added the removed test cases to a new file within test/unit
@@ -43,13 +43,13 @@ def setup_test_logging(logger: logging.Logger, filename: str): | |||
) | |||
formatter = logging.Formatter(log_fmt) | |||
|
|||
if os.getenv("STREAM_LOG", "true"): | |||
if os.getenv("STREAM_LOG", "true").lower() == "true": |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Test Coverage Report for Build 1943753443Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Summary
Make a clear separation between
unit
(that run locally) andintegration
tests (that require configured API credentials). Back-ports parts of Qiskit/qiskit-ibm-runtime#139.Details and comments
In this PR I did neither focus on fixing
integration
tests, nor making a split betweenintegration
ande2e
tests. The main goal is to align the overall structure with the one used inqiskit-ibm-runtime
to ease porting changes required for #237.