# Workspace

The workspace refers to the working directory where Chevere is developed.

# IDE

Chevere provides snippets and recommendation on extensions that goes better for development, this includes the provisioning IDE resources.

TIP

🧔🏾 The default IDE of choice is Visual Studio Code

# Assets

All Visual Studio Code assets and settings are at the .vscode/ folder.

# Extensions

This is a list of the essential extensions that I can recommend for using Visual Studio Code for developing Chevere.

# Template Snippets

Snippets in Visual Studio Code provide an easy way to define templates for code. It is a productivity tool that allows to rapidly cast source code just typing a keyword in the IDE.

Snippets provide this functionality for the IDE:

Snippets in action

Note that for the example above, the header comment and strict_types declaration are automatically provided by the coding standard formatting.

# Coding Standards Formatting

The coding standard is automatically implemented on save.

# Testing

PHPUnit Test Explorer provides inline tools for code execution and reviewing. It allows to easily handle all tests.

# Running tests

To run tests:

vendor/bin/phpunit -c phpunit.xml

To run tests with code coverage report at ./build/coverage/html:

vendor/bin/phpunit -c phpunit-report.xml

To run filtered tests use the --filter option:

vendor/bin/phpunit -c phpunit-report.xml --filter ActionTest

Kindly check PHPUnit Documentation for all available options.

# Code Coverage

Coverage Gutters provides visual feedback regarding covered lines right into the editor.