python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
React Jest Unit Testing await in private function uncovered line
I call a async function in useEffect
const [documents, setDocuments] = useState(Array());
async function findDocuments() {
const res = await findDocumentList([], {});
setDocuments(res.data...
MareCieco
Votes: 0
Answers: 1
Code coverage in Rust - "failed to run `rustc` to learn about target-specific information"
I am trying to get code coverage for my project in Rust. I am following the instructions provided here: https://marco-c.github.io/2020/11/24/rust-source-based-code-coverage.html
Based on that (and fro...
Coder
Votes: 0
Answers: 0
exclude code coverage for ef core migration files
I want to exclude all auto generated migration files from code coverage caculation. I can't change the dotnet test command in the build pipeline so I guess my only friend is the [ExcludeFromCodeCovera...

lastr2d2
Votes: 0
Answers: 1
Python unit-testing: view annotated coverage report in terminal
I'm using Python's unittest for testing, and I know I can view per-source-file annotated coverage report in browser by exporting it to HTML files with:
coverage run -m unittest *_test.py
coverage html...
saeedgnu
Votes: 0
Answers: 1