question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad 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:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
SimonCroppcommented, Aug 30, 2018

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 runners

eg

        testResult = weavingTask.ExecuteTestRun("AssemblyWithTypeFilter.dll",runPeVerify:false);
0reactions
worldbeatercommented, Sep 9, 2018

Tried on a different Windows machine, the issue was gone. So perhaps something is wrong with my tooling.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found