Tests won't pass
See original GitHub issueBad things happen when I clone the repo and try to run tests:
Stack trace:
at Fody.PeVerifier.ThrowIfDifferent(String beforeAssemblyPath, String afterAssemblyPath, IEnumerable`1 ignoreCodes, String workingDirectory)
at Fody.WeaverTestHelper.ExecuteTestRun(BaseModuleWeaver weaver, String assemblyPath, Boolean runPeVerify, Action`1 afterExecuteCallback, Action`1 beforeExecuteCallback, String assemblyName, IEnumerable`1 ignoreCodes)
at AssemblyWithBaseInDifferentModuleTests.Weave(Boolean useStaticEqualsFromBase) in C:\Users\prizr\Documents\GitHub\PropertyChanged\Tests\AssemblyWithBaseInDifferentModuleTests.cs:line 13
at AssemblyWithBaseInDifferentModuleTests.GenericChildClass() in C:\Users\prizr\Documents\GitHub\PropertyChanged\Tests\AssemblyWithBaseInDifferentModuleTests.cs:line 27
[xUnit.net 00:00:03.45] AssemblyWithBaseInDifferentModuleTests.SimpleChildClass [FAIL]
[xUnit.net 00:00:03.64] AssemblyWithBaseInDifferentModuleTests.GenericBase_OwnStaticEquals [FAIL]
[xUnit.net 00:00:03.87] AssemblyWithBaseInDifferentModuleTests.GenericBase_StaticEquals_BaseNotUsed [FAIL]
[xUnit.net 00:00:04.09] AssemblyWithBaseInDifferentModuleTests.GenericEquals [FAIL]
[xUnit.net 00:00:04.34] AssemblyWithBaseInDifferentModuleTests.GenericBase_MultipleBaseClasses_GenericArgsMapping_BaseHasMoreArgs [FAIL]
[xUnit.net 00:00:04.59] AssemblyWithBaseInDifferentModuleTests.DirectChildClass [FAIL]
Not passed: AssemblyWithBaseInDifferentModuleTests.SimpleChildClass
Error message:
System.Exception : The files have difference peverify results.
So, 29 tests fail, 94 tests pass, total 123. Are the tests supposed to fail or am I doing something wrong? Unable to contribute, help needed 🥇
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Why do my tests fail when run together, but pass individually?
Such a situation normally occurs when the unit tests are using shared resources/data in some way. It can also happen if your system...
Read more >Code works but i won't pass the test - JavaScript
Can someone please explain to me why i can't get this test to pass. The numbers i get as result are the same...
Read more >What Happens If Your Car Doesn't Pass Smog Tests ...
Not passing a smog test can become a very big inconvenience very fast for vehicle owners. Discover what happens if your car doesn't...
Read more >Why are unit tests failing seen as bad?
Is incorrect as passing unit tests don't show the code is perfect. It's a disincentive to come up with code that would be...
Read more >Simple tests pass in opened UI but fail on command line ...
Current behavior: Simple tests against web-app work, but when I run them in the headless mode, they fail and the error given is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok this is weird. i now get the same errors. my guess would be something to do with a changes new netcore sdk. it still passes on the build server. i will look into it further.
in the short term if u want to get unstuck u can pass
runPeVerify:false
to the test runnerseg
Tried on a different Windows machine, the issue was gone. So perhaps something is wrong with my tooling.