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:
- Created 6 years ago
- Comments:8 (6 by maintainers)
Top 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 >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
test/.setup.js
will auto load byegg-bin test
, see https://github.com/eggjs/egg-bin/blob/master/lib/cmd/test.js#L91simple
containstest/.setup.js
https://github.com/eggjs/egg-boilerplate-simple/blob/master/boilerplate/test/.setup.jsintelli-espower-loader
is also auto required, which play a magic trick to replace allrequire('assert')
torequire('power-assert')
so you just need to
require('assert')
, just as plain node test code, NO API IS THE BEST API !that’s @fengmk2 's idea, let’s ping him