bahmutov / bahmutov/real-time-coverage

Refactor a source for adding coverage

Open
#3 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2
Forks
0
PR merge metrics
No merged PRs in 30d

Description

For example attaching method to increase coverage for a line to the window,
currently just creates a single observable

``` js
const coverage$ = Rx.Observable.create(function (observer) {
function incrementCoverage (line) {
if (fileCoverage.l[line] === undefined) {
console.error('there is no source on line', line)
return
}
fileCoverage.l[line] += 1
observer.onNext(fileCoverage)
}
window.incrementCoverage = incrementCoverage
}).startWith(fileCoverage)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the source containing the Rx.Observable.create snippet and inspect how coverage$ and window.incrementCoverage are used. The issue provides no target file, test, or explicit completion criteria, so clarify whether the observable construction and coverage increment behavior should be separated before deciding what done means.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing-qa
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.