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
|
|
!fixup add the project to the solution files
72fafdd
codecov-io commented Nov 9, 2020 · edited Loading
Copy link Copy Markdown
Codecov Report
@@ 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
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov .
|
Add more test cases
20861b2
Merge remote-tracking branch 'upstream/master' into domain-reload-tes...
2253ef3
...t-casesBadSingleton 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.csprojOutdated
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> |
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
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 |
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
We can consider it has. The original plan was to have the tests merged in before the fixes, but the fixes requires the tests.. |