← Winnitude! Search  ·  Reader Mode (1752 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 71 LINKS

Adds test cases for member changes during a domain reload by BadSingleton · Pull Request #1275 · pythonnet/pythonnet

Repository navigation

Adds test cases for member changes during a domain reload - #1275


Closed
BadSingleton wants to merge 8 commits into pythonnet:master from Unity-Technologies:domain-reload-test-cases
Closed

Adds test cases for member changes during a domain reload #1275 BadSingleton wants to merge 8 commits into pythonnet:master from Unity-Technologies:domain-reload-test-cases

Conversation

BadSingleton commented Nov 9, 2020 · edited Loading



Copy link Copy Markdown
Contributor

The tests are marked as expected failures for now.

What does this implement/fix? Explain your changes.

This adds a test harness/framework for renaming/removing members during domain reload. Actual fixes for these tests will com in other pull request(s).

Does this close any currently open issues?

This will help start addressing #1250

Any other comments?

This supersedes, in part, #1269

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself to AUTHORS
  • Updated the CHANGELOG
Adds test cases for member changes during a domain reload fc7da1d
The tests are marked as expected failures for now.

dnfadmin commented Nov 9, 2020 · edited Loading



Copy link Copy Markdown


All CLA requirements met.

!fixup add the project to the solution files 72fafdd

codecov-io commented Nov 9, 2020 · edited Loading



Copy link Copy Markdown

Codecov Report

Merging #1275 (3adc559 ) into master (182faed ) will decrease coverage by 3.43%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #1275      +/-   ##
==========================================
- Coverage   87.97%   84.53%   -3.44%     
==========================================
  Files           1        1              
  Lines         291      291              
==========================================
- Hits          256      246      -10     
- Misses         35       45      +10     
Flag Coverage Δ
setup_linux 59.45% <ø> (-5.85%) ⬇️
setup_windows 74.22% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
setup.py 84.53% <0.00%> (-3.44%) ⬇️

Continue to review full report at Codecov .

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov . Last update 182faed...3adc559 . Read the comment docs .

Félix Bourbonnais added 2 commits November 18, 2020 14:28 Add more test cases 20861b2 Merge remote-tracking branch 'upstream/master' into domain-reload-tes... 2253ef3
...t-cases
BadSingleton mentioned this pull request Nov 19, 2020 Domain reload test cases fixes #1287 Merged 4 tasks Félix Bourbonnais added 2 commits November 19, 2020 15:42 Make the tests run as netcoreapp 635edac
Even though it tests nothing.
Remove stray colon 0ee931e lostmsu requested changes Nov 26, 2020
View reviewed changes

lostmsu left a comment



Copy link Copy Markdown
Member

Choose a reason for hiding this comment

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

What's the status of the time spent running these tests? Are they only enabled for supported configurations?

Comment thread src/domain_tests/Python.DomainReloadTests.15.csproj
Outdated
Comment on lines +51 to +60
<PropertyGroup Condition="$(Configuration.Contains('Debug')) AND '$(TargetFramework)'=='netstandard2.0'">
<DebugSymbols>true</DebugSymbols>
<Optimize>false</Optimize>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition="$(Configuration.Contains('Release')) AND '$(TargetFramework)'=='netstandard2.0'">
<DebugSymbols>true</DebugSymbols>
<Optimize>true</Optimize>
<DebugType>portable</DebugType>
</PropertyGroup>
Comment thread pythonnet.sln
Outdated
Comment on lines +198 to +212
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.DebugWinPY3|x64.Build.0 = DebugWinPY3|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.DebugWinPY3|x86.ActiveCfg = DebugWinPY3|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.DebugWinPY3|x86.Build.0 = DebugWinPY3|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseMono|x64.ActiveCfg = ReleaseMono|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseMono|x86.ActiveCfg = ReleaseMono|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseMonoPY3|x64.ActiveCfg = ReleaseMonoPY3|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseMonoPY3|x86.ActiveCfg = ReleaseMonoPY3|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWin|x64.ActiveCfg = ReleaseWin|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWin|x64.Build.0 = ReleaseWin|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWin|x86.ActiveCfg = ReleaseWin|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWin|x86.Build.0 = ReleaseWin|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWinPY3|x64.ActiveCfg = ReleaseWinPY3|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWinPY3|x64.Build.0 = ReleaseWinPY3|x64
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWinPY3|x86.ActiveCfg = ReleaseWinPY3|x86
{7539EBD5-7A15-4513-BCB0-1D9BEF112BC2}.ReleaseWinPY3|x86.Build.0 = ReleaseWinPY3|x86

BadSingleton commented Nov 26, 2020



Copy link Copy Markdown
Contributor

Author

What's the status of the time spent running these tests? Are they only enabled for supported configurations?

Good question. Each case takes ~2.2 seconds on my machine. Because they run through pytest, I haven't found a way to have them not run in netstandard builds (where the runner code is ifdef'd out). The solution might be to move the test harness to a nunit test

Félix Bourbonnais added 2 commits November 26, 2020 14:34 Clean up the project and solution files 5f061bc Merge branch 'master' into domain-reload-test-cases 3adc559

lostmsu commented Nov 28, 2020



Copy link Copy Markdown
Member

Has this been completely superseded by #1287 ?

BadSingleton commented Nov 29, 2020



Copy link Copy Markdown
Contributor

Author

Has this been completely superseded by #1287 ?

We can consider it has. The original plan was to have the tests merged in before the fixes, but the fixes requires the tests..

BadSingleton closed this Nov 29, 2020 Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

None yet

4 participants