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.

[Feature] CLI Test Coverage

See original GitHub issue

I’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:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
s-hoffcommented, Jan 7, 2017

I just managed to get a test running on the file-system.js using mock-fs and jasmine-node. I tried all the functions on file-system and fs 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.

0reactions
MeirionHughescommented, Apr 19, 2017

I assume this can be closed now

Read more comments on GitHub >

github_iconTop 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 >

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