From 4d1b75fb33d8459726c468a273da6b8fd9cb2737 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alvaro=20Andr=C3=A9s=20Rodr=C3=ADguez=20Scelza?= Date: Sun, 2 Jun 2019 02:57:23 -0300 Subject: [PATCH] Structured testing folder. Added manual testing doc. --- .../loaderon_hooks/Documentation/manual_testing.txt | 10 ++++++++++ .../test_samples_folder.txt => tests/__init__.py} | 0 .../{test_samples => tests/manual_testing}/runner.py | 0 .../manual_testing}/testing_class.py | 0 .../manual_testing}/testing_view.xml | 0 5 files changed, 10 insertions(+) create mode 100644 pre_commit_hooks/loaderon_hooks/Documentation/manual_testing.txt rename pre_commit_hooks/loaderon_hooks/{Documentation/test_samples_folder.txt => tests/__init__.py} (100%) rename pre_commit_hooks/loaderon_hooks/{test_samples => tests/manual_testing}/runner.py (100%) rename pre_commit_hooks/loaderon_hooks/{test_samples => tests/manual_testing}/testing_class.py (100%) rename pre_commit_hooks/loaderon_hooks/{test_samples => tests/manual_testing}/testing_view.xml (100%) diff --git a/pre_commit_hooks/loaderon_hooks/Documentation/manual_testing.txt b/pre_commit_hooks/loaderon_hooks/Documentation/manual_testing.txt new file mode 100644 index 0000000..dbe2c97 --- /dev/null +++ b/pre_commit_hooks/loaderon_hooks/Documentation/manual_testing.txt @@ -0,0 +1,10 @@ +Inside pre_commit_hooks/loaderon_hooks/tests/manual_testing you can find several finds which function is to allow +quick manual testing of any developed hook. + +runner.py is in charge of calling the main function of any hook file, and thus trigger that hook by passing +a to-be-tested file as parameter. The hook will take that file and run it's checks, potentially allowing us to debug +and therefore find possible problems. + +testing_class.py is a to-be-tested file example, used to test check_class_docstring hook. + +testing_view.xml is a to-be-tested file example, used to test check_view_name Odoo specific hook. \ No newline at end of file diff --git a/pre_commit_hooks/loaderon_hooks/Documentation/test_samples_folder.txt b/pre_commit_hooks/loaderon_hooks/tests/__init__.py similarity index 100% rename from pre_commit_hooks/loaderon_hooks/Documentation/test_samples_folder.txt rename to pre_commit_hooks/loaderon_hooks/tests/__init__.py diff --git a/pre_commit_hooks/loaderon_hooks/test_samples/runner.py b/pre_commit_hooks/loaderon_hooks/tests/manual_testing/runner.py similarity index 100% rename from pre_commit_hooks/loaderon_hooks/test_samples/runner.py rename to pre_commit_hooks/loaderon_hooks/tests/manual_testing/runner.py diff --git a/pre_commit_hooks/loaderon_hooks/test_samples/testing_class.py b/pre_commit_hooks/loaderon_hooks/tests/manual_testing/testing_class.py similarity index 100% rename from pre_commit_hooks/loaderon_hooks/test_samples/testing_class.py rename to pre_commit_hooks/loaderon_hooks/tests/manual_testing/testing_class.py diff --git a/pre_commit_hooks/loaderon_hooks/test_samples/testing_view.xml b/pre_commit_hooks/loaderon_hooks/tests/manual_testing/testing_view.xml similarity index 100% rename from pre_commit_hooks/loaderon_hooks/test_samples/testing_view.xml rename to pre_commit_hooks/loaderon_hooks/tests/manual_testing/testing_view.xml