Commit graph

28 commits

Author SHA1 Message Date
756dcc96f6 rename 2023-12-14 13:53:15 +01:00
1481a3a49a improve output in case of failed tests 2023-12-14 13:52:18 +01:00
8e926d4e64 add file change check to copy_env_files, add test cases for copy_env_files 2023-12-14 11:38:55 +01:00
290b3f879a add missing key assertion in _get_dependency_rules and add test case 2023-12-14 10:44:08 +01:00
88d466c745 fix escape chars in regex pattern 2023-12-13 17:40:49 +01:00
aa541de52f add tests for dirmanager 2023-12-13 17:01:56 +01:00
18d9782a8a fix paths and assert return code 2023-12-13 17:01:25 +01:00
d9b65c6a6f cleanup 2023-12-13 00:43:11 +01:00
25c1f6fd50 remove ic 2023-12-13 00:36:09 +01:00
3d8c72e373 add test for Coordinator.create_runner_dict 2023-12-13 00:17:29 +01:00
766e7909d0 test_abratest_cli_full_integration working 2023-12-11 15:53:22 +01:00
aba66158a1 use load_json_to_environ 2023-12-11 15:43:34 +01:00
8feebb9270 rename test 2023-12-11 15:42:27 +01:00
ed403954b6 wip test_pytest_abra 2023-12-11 15:42:27 +01:00
63309b67c0 test_check_result_with_playwright fully working 2023-12-11 15:38:26 +01:00
89a8b8d3e3 remove os.environ.clear() -> breaks context fixture 2023-12-11 15:37:58 +01:00
e0d2b7cd21 simplify error 2023-12-11 15:26:17 +01:00
c24f09a9ab remove test dependency 2023-12-11 14:43:29 +01:00
616fe8a491 improve test 2023-12-11 14:06:07 +01:00
0af72d13a7 add test_load_test_credentials 2023-12-11 14:03:40 +01:00
106e40920c add cli test 2023-12-11 13:56:26 +01:00
cf93cc8046 add test for runner functions 2023-12-11 12:10:04 +01:00
016b88a68d testing-html-merge (#15)
* add tests for merge_html_reports function

Reviewed-on: local-it-infrastructure/e2e_tests#15
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-09 15:28:48 +01:00
d1ff1183a5 refactoring (#13)
* general project refactoring

* various small improvements

* improve imap fixture with helper functions and typing

* add wordpress send email setup

* add wordpress receive email test

* add various documentation

Reviewed-on: local-it-infrastructure/e2e_tests#13
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-08 18:17:31 +01:00
8685688698 installable package (#9)
* turn repo into installable package (pip install -e .)

* add hatchling build packend

* call it pytest-abra

* add pytest entrypoint, so that it gets loaded automatically if installed (and pytest is run)

* make fixtures optional, so that pytest can still be used in other context

* add cli script -> you can now directly run "pytest-abra" in console

Reviewed-on: local-it-infrastructure/e2e_tests#9
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-07 11:32:01 +01:00
f9c21c6e6b refactor for independent test dirs (#7)
* make it so that the actual tests can be moved anywhere, for example in abra recipe repos
-> major refactoring with pytest test discovery magic

* create RUNNER_DICT dynamically with importlib
-> none of the tests are hardcoded, more tests can be added by placing a folder

* autoload fixtures with pytest plugins

* add URL fixture to navigate on web pages. Includes url parser based on python urllib to generate correct links

* fix nextcloud setups and tests

*  add email groundwork with imbox

Reviewed-on: local-it-infrastructure/e2e_tests#7
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-05 21:41:43 +01:00
3fa10aaa69 implement env manager (#6)
* add EnvManager class

* holds all functions that are env file related

* integrates runner dependency resolution

* add integration and unit tests for EnvManager

Reviewed-on: local-it-infrastructure/e2e_tests#6
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-04 17:09:01 +01:00
d3dc0f942a new-features (#5)
* refactoring and rework: runner now has setups / tests / cleanups as lists
* add nextcloud runner
* add email testing prototype with imap fixture
* add dependency resolution (sort env files in input so that test order is correct)

Reviewed-on: local-it-infrastructure/e2e_tests#5
Co-authored-by: Daniel <d.brummerloh@gmail.com>
Co-committed-by: Daniel <d.brummerloh@gmail.com>
2023-12-04 12:46:30 +01:00