FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
b74c066b
Commit
b74c066b
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
experimenting with ways of running tests
parent
d9fd779f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/integration/partial/run_test_suite.py
+8
-5
8 additions, 5 deletions
tests/integration/partial/run_test_suite.py
tests/integration/test_suites/env_suit_test_suite.py
+1
-1
1 addition, 1 deletion
tests/integration/test_suites/env_suit_test_suite.py
with
9 additions
and
6 deletions
tests/integration/partial/run_test_suite.py
+
8
−
5
View file @
b74c066b
import
sys
import
unittest
from
unittest
import
TestLoader
,
TestSuite
from
HtmlTestRunner
import
HTMLTestRunner
...
...
@@ -10,16 +11,18 @@ from integration.partial.test_survey import TestSurvey
from
integration.partial.test_advisory
import
TestAdvisory
def
run_tests_and_report
(
output
:
str
)
:
def
build_test_runner
()
->
TestSuite
:
tests
:
TestSuite
=
TestSuite
()
tests
.
addTests
(
TestLoader
().
loadTestsFromTestCase
(
TestDeposition
))
tests
.
addTests
(
TestLoader
().
loadTestsFromTestCase
(
TestEnvSuit
))
tests
.
addTests
(
TestLoader
().
loadTestsFromTestCase
(
TestSurvey
))
tests
.
addTests
(
TestLoader
().
loadTestsFromTestCase
(
TestAdvisory
))
runner
=
HTMLTestRunner
(
output
=
output
,
combine_reports
=
True
)
runner
.
run
(
tests
)
return
tests
if
__name__
==
'
__main__
'
:
run_tests_and_report
(
sys
.
argv
[
1
])
_output_dir
=
sys
.
argv
.
pop
()
_tests
=
build_test_runner
()
_runner
=
HTMLTestRunner
(
output
=
_output_dir
,
combine_reports
=
True
)
# unittest.main(testRunner = runner)
_runner
.
run
(
_tests
)
This diff is collapsed.
Click to expand it.
tests/integration/test_suites/env_suit_test_suite.py
+
1
−
1
View file @
b74c066b
...
...
@@ -40,7 +40,7 @@ class BaseEnvSuitTestSuite:
status_file_path
=
os
.
path
.
join
(
IntegrationTestUtils
.
TEST_OUT_PATH
,
IntegrationTestUtils
.
TEST_JOB_DIR
,
"
STATUS_SUCCESS
"
)
success_file_exists
:
bool
=
os
.
path
.
isfile
(
status_file_path
)
self
.
assertTrue
(
success_file_exists
)
self
.
assertTrue
(
False
)
def
test_standard_run_input_all_regions_ran
(
self
):
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment