Assert.equal not returning properly
See original GitHub issueHi @DavertMik!
Since updating to v0.3.0
I am having problems with assert.equal
when the assert fails:
Here a little code snippet to show what I mean:
Before((I) => {
I.amOnPage('/');
});
Scenario.only(
'Navigating to prev week check date picker value',
function* prev(I, actionBarTop, appointmentPage) {
assert.equal(true, false);
});
Navigation --
Navigating to prev week check date picker value
• I am on page "https://www.test.com"
and after that the test just finishes, without failing properly
On the otherhand with assert.equal(true, true)
the tests passes
Is there some problem with assert?
UPDATE:
I have got the impression that is has to do with your new handling of errors in the scenario.js
:
Line 22: recorder.add(() => done(err), true);
Might be the issue?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Assert.equal not returning properly · Issue #89 - GitHub
Hi @DavertMik! Since updating to v0.3.0 I am having problems with assert.equal when the assert fails: Here a little code snippet to show ......
Read more >junit - object java AssertEquals Same not returning true when ...
Assert.assertSame doc says: Asserts that two objects refer to the same object. Two objects can be equal ( object1.equals(obejct2) ) without being the...
Read more >Mocha assertions not returning correctly on assert.equal with BN
@errata: I think that assert.equal just uses == , and since you're passing two different objects, it fails. You can verify my conjecture...
Read more >Asserting Equality in your C# unit tests - Medium
AreEqual if you are using NUnit) will simply not state that they are equal. ... Assert.Equal(expected, actual); // The test will fail here....
Read more >Best practices for writing unit tests - .NET - Microsoft Learn
Repeatable: Running a unit test should be consistent with its results, that is, it always returns the same result if you don't change...
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 FreeTop 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
Top GitHub Comments
I’ve had similar symptoms with custom helpers. The when the test passes the message is OK, if it fails I get no feedback with errors.
Tested in
v0.6.3
Everything works as expected. Closing this issue