Skip to content

#80 gunnsdraw regression tests - #197

Draft
n-trevino wants to merge 37 commits into
masterfrom
80-gunnsdraw-regression-tests
Draft

n-trevino wants to merge 37 commits into
masterfrom
80-gunnsdraw-regression-tests

Conversation

@n-trevino

@n-trevino n-trevino commented Sep 13, 2026 •

Copy link
Copy Markdown
Contributor

See #80

@n-trevino n-trevino self-assigned this Sep 13, 2026
@n-trevino n-trevino linked an issue Sep 13, 2026 that may be closed by this pull request
1 of 8 tasks
Comment on lines +36 to +37
with:
ref: 80-gunnsdraw-regression-tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMPORTANT: remove these two lines before merging


# Force copy test files to truth_output
cp -aT test_files/netexport/nominal/ truth_output/
cp -aT test_files/netexport/off_nominal/ truth_output/

@joeval920 joeval920 Sep 16, 2026 •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just a preference thing: could we have the comparison directories be named as follows?

output -> output_actual
truth_output ->output_expect

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we git-track the .bak files?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say no, though I could easily see someone accidentally committing them in the future. I suppose I could also check that the .bak files match the original file, as intended?

echo "====== Off Nominal Tests ========================================================================="
for network in "${off_nominal[@]}"
do
coverage run -a ../netexport.py output/$network.xml 2>&1 | tee output/${network}_output.txt

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i get an error for ./testNetExport.sh: line 71: coverage: command not found

what do I need to install in my Linux container for coverage?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd run these, which I had to put in the test .yml as well:

python3 -m pip install --upgrade pip
pip install coverage

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can add a check for that package in the test script

workflow_dispatch:

jobs:
all_unit_tests:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you choose a new job name?

@joeval920

Copy link
Copy Markdown
Contributor

@n-trevino -- Good test design, thorough, and already running in the pipeline. Love it. Great job!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

GunnsDraw regression tests

2 participants