diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 45acf75663c5df6062fe1b3941be56ab2fd2c54a..fc5e7919a80b050d069f1b97476ed25233884528 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,4 +1,4 @@
 unittests:
     script: python -m unittest discover tests -v
 doctests:
-    script: python -m doctest -v AmpScan/core.py
+    script: python /tests/doctests.py
diff --git a/AmpScan/core.py b/AmpScan/core.py
index 1e3600661ec8997c6297e295d64f6cce2561d29f..834c775e3994d2f98fd1726364abd121ccf94cde 100644
--- a/AmpScan/core.py
+++ b/AmpScan/core.py
@@ -37,7 +37,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
     Examples
     -------
     >>> import AmpScan
-    >>> filename = "../tests/stl_file.stl"
+    >>> import os
+    >>> filename = os.getcwd()+"\\tests\\stl_file.stl"
     >>> amp = AmpObject(filename)
 
     """
@@ -150,7 +151,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
         
         Examples
         --------
-        >>> filename = "../tests/stl_file.stl"
+        >>> import os
+        >>> filename = os.getcwd()+"\\tests\\stl_file.stl"
         >>> amp = AmpObject(filename, unify=False)
         >>> amp.vert.shape
         (44832, 3)
@@ -347,7 +349,8 @@ class AmpObject(trimMixin, smoothMixin, analyseMixin, visMixin):
         
         Examples
         --------
-        >>> filename = "../tests/stl_file.stl"
+        >>> import os
+        >>> filename = os.getcwd()+"\\tests\\stl_file.stl"
         >>> amp = AmpObject(filename)
         >>> ang = [np.pi/2, -np.pi/4, np.pi/3]
         >>> amp.rotateAng(ang, ang='rad')
diff --git a/tests/doctests.py b/tests/doctests.py
new file mode 100644
index 0000000000000000000000000000000000000000..66e71b292ca6427b699ea2ff4934eafa1a009b52
--- /dev/null
+++ b/tests/doctests.py
@@ -0,0 +1,8 @@
+import AmpScan.core as core
+import AmpScan.trim as trim
+
+if __name__ == '__main__':
+    import doctest
+    doctest.testmod(core, verbose=True)
+    doctest.testmod(trim, verbose=True)
+