Repository: pymeasure/pymeasure

Issue:
Consider installing the tests
Since you decided to embed the test suite inside the package instead of leaving it outside in a common `tests` folder (both of which are totally acceptable and covered by the `pytest` guidelines), why not install the tests with the package? It would give the following benefits:

- Simplify the `setuptools` metadata, by replacing the explicit listing of the modules with a single call to `find_package`,
- Easy testing of the installed package via `python -m pytest --pyargs pymeasure`.


Discussion:
The following change would be enough actually:
```diff
diff --git a/setup.py b/setup.py
index 3426fc4..a57efb2 100644
--- a/setup.py
+++ b/setup.py
@@ -48,6 +48,11 @@ setup(
         'pymeasure.instruments.thorlabs',
         'pymeasure.instruments.tektronix',
         'pymeasure.instruments.yokogawa',
+        'pymeasure.adapters.tests',
+        'pymeasure.experiment.tests',
+        'pymeasure.experiment.tests.data',
+        'pymeasure.instruments.tests',
+        'pymeasure.tests',
     ],
     scripts=[],
     url='https://github.com/ralph-group/pymeasure',
```
@ghisvail, that sounds like a useful addition. Can we improve the continuous integration scripts with this?

PR welcome. Also, please add yourself to the authors list.
> Can we improve the continuous integration scripts with this?

The CI setup look fine to me. I would not touch that for now.

What you would get in return is that someone reporting an issue from a venv or user deployment of `pymeasure` could then be asked to run `python -m pytest --pyargs pymeasure` to validate the as-installed package.

Resolving patch:
diff --git a/setup.py b/setup.py
--- a/setup.py
+++ b/setup.py
@@ -23,32 +23,13 @@
 #
 
 
-from setuptools import setup
+from setuptools import setup, find_packages
 
 setup(
     name='PyMeasure',
     version='0.4.3',
     author='PyMeasure Developers',
-    packages=[
-        'pymeasure', 'pymeasure.instruments',
-        'pymeasure.adapters', 'pymeasure.display',
-        'pymeasure.experiment',
-        'pymeasure.instruments.agilent',
-        'pymeasure.instruments.ami',
-        'pymeasure.instruments.anritsu',
-        'pymeasure.instruments.danfysik',
-        'pymeasure.instruments.fwbell',
-        'pymeasure.instruments.hp',
-        'pymeasure.instruments.keithley',
-        'pymeasure.instruments.lakeshore',
-        'pymeasure.instruments.newport',
-        'pymeasure.instruments.parker',
-        'pymeasure.instruments.signalrecovery',
-        'pymeasure.instruments.srs',
-        'pymeasure.instruments.thorlabs',
-        'pymeasure.instruments.tektronix',
-        'pymeasure.instruments.yokogawa',
-    ],
+    packages=find_packages(),
     scripts=[],
     url='https://github.com/ralph-group/pymeasure',
     download_url = 'https://github.com/ralph-group/pymeasure/tarball/v0.4.3',


Test patch:
diff --git a/pymeasure/adapters/tests/__init__.py b/pymeasure/adapters/tests/__init__.py
new file mode 100644
diff --git a/pymeasure/experiment/tests/__init__.py b/pymeasure/experiment/tests/__init__.py
new file mode 100644
diff --git a/pymeasure/experiment/tests/data/__init__.py b/pymeasure/experiment/tests/data/__init__.py
new file mode 100644
diff --git a/pymeasure/instruments/tests/__init__.py b/pymeasure/instruments/tests/__init__.py
new file mode 100644
diff --git a/pymeasure/tests/__init__.py b/pymeasure/tests/__init__.py
new file mode 100644