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.

Running tests with false-positive result.

See original GitHub issue
  • Node Version: 6
  • Egg Version: 1.0.0
  • Plugin Name:
  • Plugin Version:
  • Platform:
// const assert = require('power-assert');

describe('test/showcase.test.js', () => {
  const arr = [ 1, 2, 3 ];

  it('power-assert', () => {
    assert(arr[1] === 10);
  });
});

For above tests, it won’t throw any error. It only works when power-assert is required. Do we have to include ‘power-assert’? I think the global assert is power-assert by default?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
atian25commented, Mar 31, 2017

so you just need to require('assert'), just as plain node test code, NO API IS THE BEST API !

0reactions
atian25commented, Apr 12, 2017

that’s @fengmk2 's idea, let’s ping him

Read more comments on GitHub >

github_iconTop Results From Across the Web

False-Positive Results in Rapid Antigen Tests for SARS-CoV-2
This study examines the incidence of false-positive results in a sample of rapid antigen tests used to serially screen asymptomatic workers ...
Read more >
How to avoid False Positives and False Negatives in ...
Finding False Positives ... False positives entail running a test that runs successfully. However, the test result shows there is an error.
Read more >
False Positive Results With SARS-CoV-2 RT-PCR Tests and ...
The test will detect 95 of the infected persons and five will be falsely negative. For those who are not infected, 9702 will...
Read more >
False positive & false negative in software testing - Testfully
To catch false negatives in tests, one should practice a technique known as mutation testing. Software engineers exercise mutation testing by ...
Read more >
Software Test Automation: False Positives & How to Avoid ...
However, it can be problematic to gather information if the testing process is constantly interrupted by diversions and interruptions. Software ...
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