Skip to content

Commit

Permalink
Merge pull request #38 from caleb-sitton-inl/use-unittest-tester
Browse files Browse the repository at this point in the history
Modified unit tests to use Unittest tester
  • Loading branch information
dylanjm authored Dec 16, 2024
2 parents 6ef7bd9 + 7c860bd commit a9c9275
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 20 deletions.
4 changes: 4 additions & 0 deletions check_py_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ cd $SCRIPT_DIR

#coverage help run
SRC_DIR=`(cd src && pwd)`
if [[ "$SRC_DIR" == "/c"* ]]
then
SRC_DIR="C:${SRC_DIR:2}"
fi

# get display var
DISPLAY_VAR=`(echo $DISPLAY)`
Expand Down
4 changes: 2 additions & 2 deletions developer_tools/rook.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[rook]
add_non_default_run_types = qsub
testers_dir = HERON/src/Testers
test_dir = tests
testers_dir = HERON/src/Testers, raven/scripts/TestHarness/testers
test_dir = tests
36 changes: 18 additions & 18 deletions tests/unit_tests/tests
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
[Tests]
[./TestMinimalInput]
type = RavenPython
input = '-m unittest test_heron.TestMinimalInput'
type = Unittest
input = 'test_heron.TestMinimalInput'
[../]

[./TestExpandedInput1]
type = RavenPython
input = '-m unittest test_heron.TestExpandedInput1'
type = Unittest
input = 'test_heron.TestExpandedInput1'
[../]

[./TestExpandedInput2]
type = RavenPython
input = '-m unittest test_heron.TestExpandedInput2'
type = Unittest
input = 'test_heron.TestExpandedInput2'
[../]

[./TestNoComponentsNode]
type = RavenPython
input = '-m unittest test_heron.TestNoComponentsNode'
type = Unittest
input = 'test_heron.TestNoComponentsNode'
[../]

[./TestNoComponentNodes]
type = RavenPython
input = '-m unittest test_heron.TestNoComponentNodes'
type = Unittest
input = 'test_heron.TestNoComponentNodes'
[../]

[./TestMissingSubnodes]
type = RavenPython
input = '-m unittest test_heron.TestMissingSubnodes'
type = Unittest
input = 'test_heron.TestMissingSubnodes'
[../]

[./TestEmptyCompSetsFolder]
type = RavenPython
input = '-m unittest test_heron.TestEmptyCompSetsFolder'
type = Unittest
input = 'test_heron.TestEmptyCompSetsFolder'
[../]

[./TestCompSetsFolderWithBadJSON]
type = RavenPython
input = '-m unittest test_heron.TestCompSetsFolderWithBadJSON'
type = Unittest
input = 'test_heron.TestCompSetsFolderWithBadJSON'
[../]

[./TestCompSetsFolderMultFiles]
type = RavenPython
input = '-m unittest test_heron.TestCompSetsFolderMultFiles'
type = Unittest
input = 'test_heron.TestCompSetsFolderMultFiles'
[../]
[]

0 comments on commit a9c9275

Please sign in to comment.