Skip to content

Commit 2ae5438

Browse files
committed
Refactor Test File
Refactor Test File
1 parent e83d9cb commit 2ae5438

8 files changed

+169
-265
lines changed

.github/workflows/auto-control-github-actions_dev_python3_10.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,49 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip wheel
2525
pip install -r dev_requirements.txt
26-
# screen test
27-
- name: screen_test
26+
- name: Test Screen Module
2827
run: python ./test/unit_test/screen/screen_test.py
29-
- name: screenshot_test
28+
- name: Test Screenshot
3029
run: python ./test/unit_test/screen/screenshot_test.py
31-
# keyboard test
32-
- name: keyboard_type_test
30+
- name: Test Keyboard type Function
3331
run: python ./test/unit_test/keyboard/keyboard_type_test.py
34-
- name: keyboard_write_test
32+
- name: Test Keyboard write Function
3533
run: |
3634
python ./test/unit_test/keyboard/keyboard_write_test.py
37-
- name: keyboard_is_press_test
35+
- name: Test Keyboard is_press Function
3836
run: python ./test/unit_test/keyboard/keyboard_is_press_test.py
39-
- name: hotkey_test
37+
- name: Test Keyboard hotkey Function
4038
run: python ./test/unit_test/keyboard/hotkey_test.py
41-
# mouse test
42-
- name: mouse_test
39+
- name: Test Mouse Module
4340
run: python ./test/unit_test/mouse/mouse_test.py
44-
- name: scroll_test
41+
- name: Test Scroll Module
4542
run: python ./test/unit_test/exception/auto_control_exception_test.py
46-
# exception test
47-
- name: auto_control_exception_test
43+
- name: Test Exceptions
4844
run: python ./test/unit_test/exception/auto_control_exception_test.py
49-
# critical exit
50-
- name: critical_exit_test
45+
- name: Test Critical Exit
5146
run: python ./test/unit_test/critical_exit/critical_exit_test.py
52-
- name: real_critical_test
47+
- name: Test Real Critical Situation
5348
run: |
5449
python ./test/unit_test/critical_exit/real_critical_test.py
5550
exit 0
56-
# test_record
57-
- name: record_test
51+
- name: Test Record Module
5852
run: python ./test/unit_test/record/record_test.py
59-
- name: total record
53+
- name: Test Total Record
6054
run: python ./test/unit_test/total_record/total_record_test.py
61-
# execute
62-
- name: execute_action_test
55+
- name: Test Execute Action
6356
run: python ./test/unit_test/execute_action/execute_action_test.py
64-
# json
65-
- name: json_test
57+
- name: Test Json Module
6658
run: python ./test/unit_test/json/json_test.py
67-
- name: json_report
59+
- name: Test Generate Json Report
6860
run: python ./test/unit_test/generate_report/json_report.py
6961
# timeout
70-
- name: timeout_test
62+
- name: Test Timeout Module
7163
run: python ./test/unit_test/timeout/timeout_test.py
72-
# argparse
73-
- name: argparse_test
64+
- name: Test Argparse
7465
run: python ./test/unit_test/argparse/argparse_test.py
75-
# html report test
76-
- name: html_report_test
66+
- name: Test Generate HTML Report
7767
run: python ./test/unit_test/generate_report/html_report_test.py
78-
# call back test
79-
- name: call back test
68+
- name: Test Callback Module
8069
run: python ./test/unit_test/callback/callback_test.py
81-
# create project
82-
- name: create project
70+
- name: Test Create Project Function
8371
run: python ./test/unit_test/create_project_file/create_project_test.py

.github/workflows/auto-control-github-actions_dev_python3_11.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,49 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip wheel
2525
pip install -r dev_requirements.txt
26-
# screen test
27-
- name: screen_test
26+
- name: Test Screen Module
2827
run: python ./test/unit_test/screen/screen_test.py
29-
- name: screenshot_test
28+
- name: Test Screenshot
3029
run: python ./test/unit_test/screen/screenshot_test.py
31-
# keyboard test
32-
- name: keyboard_type_test
30+
- name: Test Keyboard type Function
3331
run: python ./test/unit_test/keyboard/keyboard_type_test.py
34-
- name: keyboard_write_test
32+
- name: Test Keyboard write Function
3533
run: |
3634
python ./test/unit_test/keyboard/keyboard_write_test.py
37-
- name: keyboard_is_press_test
35+
- name: Test Keyboard is_press Function
3836
run: python ./test/unit_test/keyboard/keyboard_is_press_test.py
39-
- name: hotkey_test
37+
- name: Test Keyboard hotkey Function
4038
run: python ./test/unit_test/keyboard/hotkey_test.py
41-
# mouse test
42-
- name: mouse_test
39+
- name: Test Mouse Module
4340
run: python ./test/unit_test/mouse/mouse_test.py
44-
- name: scroll_test
41+
- name: Test Scroll Module
4542
run: python ./test/unit_test/exception/auto_control_exception_test.py
46-
# exception test
47-
- name: auto_control_exception_test
43+
- name: Test Exceptions
4844
run: python ./test/unit_test/exception/auto_control_exception_test.py
49-
# critical exit
50-
- name: critical_exit_test
45+
- name: Test Critical Exit
5146
run: python ./test/unit_test/critical_exit/critical_exit_test.py
52-
- name: real_critical_test
47+
- name: Test Real Critical Situation
5348
run: |
5449
python ./test/unit_test/critical_exit/real_critical_test.py
5550
exit 0
56-
# test_record
57-
- name: record_test
51+
- name: Test Record Module
5852
run: python ./test/unit_test/record/record_test.py
59-
- name: total record
53+
- name: Test Total Record
6054
run: python ./test/unit_test/total_record/total_record_test.py
61-
# execute
62-
- name: execute_action_test
55+
- name: Test Execute Action
6356
run: python ./test/unit_test/execute_action/execute_action_test.py
64-
# json
65-
- name: json_test
57+
- name: Test Json Module
6658
run: python ./test/unit_test/json/json_test.py
67-
- name: json_report
59+
- name: Test Generate Json Report
6860
run: python ./test/unit_test/generate_report/json_report.py
6961
# timeout
70-
- name: timeout_test
62+
- name: Test Timeout Module
7163
run: python ./test/unit_test/timeout/timeout_test.py
72-
# argparse
73-
- name: argparse_test
64+
- name: Test Argparse
7465
run: python ./test/unit_test/argparse/argparse_test.py
75-
# html report test
76-
- name: html_report_test
66+
- name: Test Generate HTML Report
7767
run: python ./test/unit_test/generate_report/html_report_test.py
78-
# call back test
79-
- name: call back test
68+
- name: Test Callback Module
8069
run: python ./test/unit_test/callback/callback_test.py
81-
# create project
82-
- name: create project
70+
- name: Test Create Project Function
8371
run: python ./test/unit_test/create_project_file/create_project_test.py
Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: AutoControl GitHub Actions Dev Python3.8
1+
name: AutoControl Dev Python3.8
22

33
on:
44
push:
@@ -23,61 +23,49 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip wheel
2525
pip install -r dev_requirements.txt
26-
# screen test
27-
- name: screen_test
26+
- name: Test Screen Module
2827
run: python ./test/unit_test/screen/screen_test.py
29-
- name: screenshot_test
28+
- name: Test Screenshot
3029
run: python ./test/unit_test/screen/screenshot_test.py
31-
# keyboard test
32-
- name: keyboard_type_test
30+
- name: Test Keyboard type Function
3331
run: python ./test/unit_test/keyboard/keyboard_type_test.py
34-
- name: keyboard_write_test
32+
- name: Test Keyboard write Function
3533
run: |
3634
python ./test/unit_test/keyboard/keyboard_write_test.py
37-
- name: keyboard_is_press_test
35+
- name: Test Keyboard is_press Function
3836
run: python ./test/unit_test/keyboard/keyboard_is_press_test.py
39-
- name: hotkey_test
37+
- name: Test Keyboard hotkey Function
4038
run: python ./test/unit_test/keyboard/hotkey_test.py
41-
# mouse test
42-
- name: mouse_test
39+
- name: Test Mouse Module
4340
run: python ./test/unit_test/mouse/mouse_test.py
44-
- name: scroll_test
41+
- name: Test Scroll Module
4542
run: python ./test/unit_test/exception/auto_control_exception_test.py
46-
# exception test
47-
- name: auto_control_exception_test
43+
- name: Test Exceptions
4844
run: python ./test/unit_test/exception/auto_control_exception_test.py
49-
# critical exit
50-
- name: critical_exit_test
45+
- name: Test Critical Exit
5146
run: python ./test/unit_test/critical_exit/critical_exit_test.py
52-
- name: real_critical_test
47+
- name: Test Real Critical Situation
5348
run: |
5449
python ./test/unit_test/critical_exit/real_critical_test.py
5550
exit 0
56-
# test_record
57-
- name: record_test
51+
- name: Test Record Module
5852
run: python ./test/unit_test/record/record_test.py
59-
- name: total record
53+
- name: Test Total Record
6054
run: python ./test/unit_test/total_record/total_record_test.py
61-
# execute
62-
- name: execute_action_test
55+
- name: Test Execute Action
6356
run: python ./test/unit_test/execute_action/execute_action_test.py
64-
# json
65-
- name: json_test
57+
- name: Test Json Module
6658
run: python ./test/unit_test/json/json_test.py
67-
- name: json_report
59+
- name: Test Generate Json Report
6860
run: python ./test/unit_test/generate_report/json_report.py
6961
# timeout
70-
- name: timeout_test
62+
- name: Test Timeout Module
7163
run: python ./test/unit_test/timeout/timeout_test.py
72-
# argparse
73-
- name: argparse_test
64+
- name: Test Argparse
7465
run: python ./test/unit_test/argparse/argparse_test.py
75-
# html report test
76-
- name: html_report_test
66+
- name: Test Generate HTML Report
7767
run: python ./test/unit_test/generate_report/html_report_test.py
78-
# call back test
79-
- name: call back test
68+
- name: Test Callback Module
8069
run: python ./test/unit_test/callback/callback_test.py
81-
# create project
82-
- name: create project
70+
- name: Test Create Project Function
8371
run: python ./test/unit_test/create_project_file/create_project_test.py

.github/workflows/auto-control-github-actions_dev_python3_9.yml

Lines changed: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -23,61 +23,49 @@ jobs:
2323
run: |
2424
python -m pip install --upgrade pip wheel
2525
pip install -r dev_requirements.txt
26-
# screen test
27-
- name: screen_test
26+
- name: Test Screen Module
2827
run: python ./test/unit_test/screen/screen_test.py
29-
- name: screenshot_test
28+
- name: Test Screenshot
3029
run: python ./test/unit_test/screen/screenshot_test.py
31-
# keyboard test
32-
- name: keyboard_type_test
30+
- name: Test Keyboard type Function
3331
run: python ./test/unit_test/keyboard/keyboard_type_test.py
34-
- name: keyboard_write_test
32+
- name: Test Keyboard write Function
3533
run: |
3634
python ./test/unit_test/keyboard/keyboard_write_test.py
37-
- name: keyboard_is_press_test
35+
- name: Test Keyboard is_press Function
3836
run: python ./test/unit_test/keyboard/keyboard_is_press_test.py
39-
- name: hotkey_test
37+
- name: Test Keyboard hotkey Function
4038
run: python ./test/unit_test/keyboard/hotkey_test.py
41-
# mouse test
42-
- name: mouse_test
39+
- name: Test Mouse Module
4340
run: python ./test/unit_test/mouse/mouse_test.py
44-
- name: scroll_test
41+
- name: Test Scroll Module
4542
run: python ./test/unit_test/exception/auto_control_exception_test.py
46-
# exception test
47-
- name: auto_control_exception_test
43+
- name: Test Exceptions
4844
run: python ./test/unit_test/exception/auto_control_exception_test.py
49-
# critical exit
50-
- name: critical_exit_test
45+
- name: Test Critical Exit
5146
run: python ./test/unit_test/critical_exit/critical_exit_test.py
52-
- name: real_critical_test
47+
- name: Test Real Critical Situation
5348
run: |
5449
python ./test/unit_test/critical_exit/real_critical_test.py
5550
exit 0
56-
# test_record
57-
- name: record_test
51+
- name: Test Record Module
5852
run: python ./test/unit_test/record/record_test.py
59-
- name: total record
53+
- name: Test Total Record
6054
run: python ./test/unit_test/total_record/total_record_test.py
61-
# execute
62-
- name: execute_action_test
55+
- name: Test Execute Action
6356
run: python ./test/unit_test/execute_action/execute_action_test.py
64-
# json
65-
- name: json_test
57+
- name: Test Json Module
6658
run: python ./test/unit_test/json/json_test.py
67-
- name: json_report
59+
- name: Test Generate Json Report
6860
run: python ./test/unit_test/generate_report/json_report.py
6961
# timeout
70-
- name: timeout_test
62+
- name: Test Timeout Module
7163
run: python ./test/unit_test/timeout/timeout_test.py
72-
# argparse
73-
- name: argparse_test
64+
- name: Test Argparse
7465
run: python ./test/unit_test/argparse/argparse_test.py
75-
# html report test
76-
- name: html_report_test
66+
- name: Test Generate HTML Report
7767
run: python ./test/unit_test/generate_report/html_report_test.py
78-
# call back test
79-
- name: call back test
68+
- name: Test Callback Module
8069
run: python ./test/unit_test/callback/callback_test.py
81-
# create project
82-
- name: create project
70+
- name: Test Create Project Function
8371
run: python ./test/unit_test/create_project_file/create_project_test.py

0 commit comments

Comments
 (0)