[gedit] Execute UT
- From: Jordi Mas <jmas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Execute UT
- Date: Sat, 18 May 2019 08:14:06 +0000 (UTC)
commit 5ca1f2f90568bc0955a93cd5beb7813e6d21b590
Author: Jordi Mas <jmas softcatala org>
Date: Sat May 18 08:13:51 2019 +0000
Execute UT
plugins/externaltools/meson.build | 2 ++
plugins/externaltools/tests/meson.build | 21 +++++++++++++++++++++
.../testlinkparsing.py} | 2 +-
3 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/plugins/externaltools/meson.build b/plugins/externaltools/meson.build
index 1a2eb0463..cc05c1267 100644
--- a/plugins/externaltools/meson.build
+++ b/plugins/externaltools/meson.build
@@ -24,3 +24,5 @@ custom_target(
'plugins',
)
)
+
+subdir('tests')
diff --git a/plugins/externaltools/tests/meson.build b/plugins/externaltools/tests/meson.build
new file mode 100644
index 000000000..6cee9fe75
--- /dev/null
+++ b/plugins/externaltools/tests/meson.build
@@ -0,0 +1,21 @@
+externaltools_tests = {
+ 'LinkParser': files('testlinkparsing.py'),
+}
+
+externaltools_srcdir = join_paths(
+ srcdir,
+ 'plugins',
+ 'externaltools',
+ 'tools',
+)
+
+foreach test_name, test_script : externaltools_tests
+ test(
+ 'test-externaltools-@0@'.format(test_name),
+ python3,
+ args: [test_script],
+ env: [
+ 'PYTHONPATH=@0@'.format(externaltools_srcdir),
+ ]
+ )
+endforeach
diff --git a/plugins/externaltools/tools/linkparsing_test.py b/plugins/externaltools/tests/testlinkparsing.py
similarity index 99%
rename from plugins/externaltools/tools/linkparsing_test.py
rename to plugins/externaltools/tests/testlinkparsing.py
index ca65a09bf..3b8a78e6a 100644
--- a/plugins/externaltools/tools/linkparsing_test.py
+++ b/plugins/externaltools/tests/testlinkparsing.py
@@ -20,7 +20,7 @@ import unittest
from linkparsing import LinkParser
-class LinkParserTest(unittest.TestCase):
+class TestLinkParser(unittest.TestCase):
def setUp(self):
self.p = LinkParser()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]