summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py')
-rw-r--r--testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py b/testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py
new file mode 100644
index 000000000..a2874a655
--- /dev/null
+++ b/testing/web-platform/tests/tools/pytest/testing/cx_freeze/runtests_setup.py
@@ -0,0 +1,15 @@
+"""
+Sample setup.py script that generates an executable with pytest runner embedded.
+"""
+if __name__ == '__main__':
+ from cx_Freeze import setup, Executable
+ import pytest
+
+ setup(
+ name="runtests",
+ version="0.1",
+ description="exemple of how embedding py.test into an executable using cx_freeze",
+ executables=[Executable("runtests_script.py")],
+ options={"build_exe": {'includes': pytest.freeze_includes()}},
+ )
+