[Feature] CLI Test Coverage
See original GitHub issueI’m submitting a feature request
- Library Version: 0.19.0
Please tell us about your environment:
-
Operating System: All
-
Node Version: 6.6.0
-
NPM Version: 3.10.3
-
Browser: all
-
Language: all
Current behavior: No test coverage of Aurelia CLI behaviors and functions
Expected/desired behavior:
- What is the expected behavior? Test coverage should exist for the CLI to protect from regression issues and ensure good code quality
- What is the motivation / use case for changing the behavior? Adding new features to the CLI can cause regression issues, among other things. To protect against regression issues, and to ensure that the CLI is behaving as expected, tests should exist.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:5
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Code Coverage Command Line Tool - GraalVM
GraalVM provides a code coverage command line tool that lets users record and analyze the source code coverage of a particular execution of...
Read more >Find out how much code you're testing - Angular
The CLI can run unit tests and create code coverage reports. Code coverage reports show you any parts of your code base that...
Read more >Command line usage — Coverage.py 6.5.0 documentation
To combine data for a source file, coverage has to find its data in each of the data files. Different test runs may...
Read more >New Command Line Code Coverage feature. - IBM
New Command Line Code Coverage feature. ... This is very useful to locate holes in your test cases as well as to identify...
Read more >Jest CLI Options
Find and run the tests that cover a space separated list of source files that were passed in as arguments. Useful for pre-commit...
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 Free
Top 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
I just managed to get a test running on the
file-system.js
using mock-fs and jasmine-node. I tried all the functions onfile-system
andfs
that are being called on the code according to a search all ‘fs’ with vscode.The only limitation I hit was that the (deprecated) exists() function did not work at all. It is used a total of 6 times in the code, all in the cli’s own files.
If we replace
exists()
with fs.stat() and fs.access(), it should work with mock-fs.I assume this can be closed now