Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
uceme
mjtest
Commits
ce8ea9af
Commit
ce8ea9af
authored
Nov 09, 2016
by
Johannes Bechberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add more semantic tests and fix test runner
parent
661814a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mjtest/test/tests.py
mjtest/test/tests.py
+3
-3
No files found.
mjtest/test/tests.py
View file @
ce8ea9af
...
...
@@ -63,7 +63,7 @@ class TestSuite:
m
in
TestMode
.
USE_TESTS_OF_OTHER
[
self
.
env
.
mode
]:
m
=
self
.
env
.
mode
for
file
in
sorted
(
os
.
listdir
(
dir
)):
if
not
TestCase
.
has_valid_file_ending
(
m
,
file
):
if
not
TestCase
.
has_valid_file_ending
(
self
.
env
.
mode
,
file
):
_LOG
.
debug
(
"Skip file "
+
file
)
elif
self
.
env
.
only_incorrect_tests
and
file
in
correct_test_cases
:
_LOG
.
info
(
"Skip file {} as its test case was executed correctly the last run"
)
...
...
@@ -221,8 +221,8 @@ class TestCase:
@
classmethod
def
create_from_file
(
cls
,
env
:
Environment
,
mode
:
str
,
file
:
str
)
->
Optional
[
'TestCase'
]:
if
cls
.
has_valid_file_ending
(
mode
,
file
):
return
cls
.
_test_case_class_for_file
(
mode
,
file
)(
env
,
mode
,
file
)
if
cls
.
has_valid_file_ending
(
env
.
mode
,
file
):
return
cls
.
_test_case_class_for_file
(
env
.
mode
,
file
)(
env
,
mode
,
file
)
return
None
def
name
(
self
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment