Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add unit testing environment #7

Open
wants to merge 26 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5c76810
[Tests] Added utility classes to setup the environment
Failxxx Nov 6, 2022
407c7ee
[Test] Added setup class for pytest
Failxxx Nov 6, 2022
c49c019
[Test] WIP: writing test script
Failxxx Nov 6, 2022
d06251d
[Test] WIP: test script is almost working
Failxxx Nov 11, 2022
492c04b
[Test] Fixed small issues
Failxxx Nov 11, 2022
711e11f
[Test] Fixed issues + added unit-testing script
Failxxx Nov 11, 2022
bd26009
[Test] Fixed missing 'matrix.os' definition
Failxxx Nov 11, 2022
bb173e0
[Test] Fixed wrong 'matrix.os' definition
Failxxx Nov 11, 2022
e3c772c
[Test] Fixed missing 'matrix.os' definition
Failxxx Nov 11, 2022
8c3124b
[Test] Fixed missing 'matrix.os' definition
Failxxx Nov 11, 2022
7906948
[Test] Fixed wrong test file name in python command
Failxxx Nov 11, 2022
e594eff
[Test] Fixed wrong test file name in python command
Failxxx Nov 11, 2022
cdfbfa4
[Doc] Added new tutorial for dev env linux
Failxxx Nov 12, 2022
d370917
[Test] Reduced number of unit tests
Failxxx Nov 12, 2022
e6634c6
[Test] Fixed wrong list of versions in get_python_version
Failxxx Nov 12, 2022
afdae53
[Test] Applied temporary fix to windows issue in unit tests
Failxxx Nov 27, 2022
2b3344e
[Test] Fixed small issues
Failxxx Nov 27, 2022
4deda53
[Test] Fiixed small issue
Failxxx Nov 27, 2022
6e8aa50
[Test] Added 'local_addon' in .gitignore
Failxxx Nov 27, 2022
db8816a
[Doc] Updated make.bat script. Now can build doc on windows.
Failxxx Feb 12, 2023
aaff2b6
[CI/CD] Updated actions plugins versions
Failxxx Feb 12, 2023
4df9cdf
[Tests] Try to fix python modules not found unit test env install
Failxxx Feb 12, 2023
2c14349
[Test] Add user scripts and site-packages folder to sys.path
Failxxx Feb 12, 2023
1fba4b0
[Tests] Reload list of available python modules during setup tests suite
Failxxx Feb 12, 2023
204501b
[Docs] Updated instructions developers manual
Failxxx Feb 19, 2023
5729948
[Docs] New tutorials to setup dev-env (add-on + manual)
Failxxx Feb 19, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Test] Fiixed small issue
Failxxx committed Nov 27, 2022
commit 4deda53bd375df9b2e962d15941d0a45a404303c
7 changes: 5 additions & 2 deletions scripts/load.py
Original file line number Diff line number Diff line change
@@ -68,7 +68,8 @@ def __init__(self, addon: str, addon_dir: str = os.path.abspath("./local_addon/"

Args:
addon (str): absolute path to the addon (zip file).
addon_dir (str, optional): absolute path to the local addon path. Defaults to: os.path.abspath("./local_addon/").
addon_dir (str, optional): absolute path to the local addon path.
Defaults to: os.path.abspath("./local_addon/").
"""

self.root = Path(__file__).parent.parent
@@ -117,7 +118,9 @@ def pytest_unconfigure(self):
an_local_addon_path = os.path.join(self.addon_dir, "addons", an_module)
BAT.cleanup(None, an_module, an_local_addon_path)
except BaseException as exception:
print(f"{TERM.LIGHT_YELLOW}WARNING: failed to clean animation_nodes directory ({an_local_addon_path}).{TERM.RESET}")
print(f"{TERM.LIGHT_YELLOW}WARNING: failed to clean animation_nodes \
directory ({an_local_addon_path}).{TERM.RESET}")
print(exception)

print("PyTest unconfigure successful!")