Skip to content

Enable Embedded Unit Tests#353

Merged
vmuriart merged 1 commit intopythonnet:masterfrom
vmuriart:old_nunit
Feb 3, 2017
Merged

Enable Embedded Unit Tests#353
vmuriart merged 1 commit intopythonnet:masterfrom
vmuriart:old_nunit

Conversation

@vmuriart
Copy link
Contributor

@vmuriart vmuriart commented Feb 2, 2017

What does this implement/fix? Explain your changes.

Enables embedded unit tests on AppVeyor

Does this close any currently open issues?

Shows failing tests on python3 during finalization but can't reproduce locally. It isn't consistent on AppVeyor either.

Any other comments?

Downgrades nunit to 2.6.4. It can deal better with exceptions that occur during finalize, unit3 just freezes and holds the ci worker until AppVeyor times it out.

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

@vmuriart vmuriart requested review from den-run-ai and filmor February 2, 2017 22:53
@codecov-io
Copy link

codecov-io commented Feb 2, 2017

Codecov Report

Merging #353 into master will increase coverage by 1.04%.

@@            Coverage Diff             @@
##           master     #353      +/-   ##
==========================================
+ Coverage   61.55%   62.59%   +1.04%     
==========================================
  Files          61       61              
  Lines        5264     5264              
  Branches      885      885              
==========================================
+ Hits         3240     3295      +55     
+ Misses       1805     1751      -54     
+ Partials      219      218       -1
Impacted Files Coverage Δ
src/runtime/moduleobject.cs 81.81% <ø> (+0.56%)
src/runtime/pyobject.cs 22.83% <ø> (+0.61%)
src/runtime/assemblymanager.cs 88.77% <ø> (+2.13%)
src/runtime/runtime.cs 84.43% <ø> (+3.11%)
src/runtime/importhook.cs 79.43% <ø> (+3.54%)
src/runtime/pythonexception.cs 66.07% <ø> (+3.57%)
src/runtime/exceptions.cs 80.7% <ø> (+7.89%)
src/runtime/pythonengine.cs 64.06% <ø> (+9.89%)
src/runtime/pylist.cs 15.9% <ø> (+11.36%)

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 6ce9b53...9acf4f6. Read the comment docs.

Copy link
Member

@filmor filmor left a comment

Choose a reason for hiding this comment

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

Fine by me, but I'll try to figure out why it doesn't work with NUnit 3.

@vmuriart
Copy link
Contributor Author

vmuriart commented Feb 3, 2017

Same reason it doesn't work with nunit2 either 😄 . The difference is that nunit2 writes out the traceback and releases control back.

For example, here you it failed to finalize (but the test itself passed).

@vmuriart vmuriart merged commit ebbad47 into pythonnet:master Feb 3, 2017
@vmuriart vmuriart deleted the old_nunit branch February 3, 2017 18:58
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.

3 participants