Testing and Code Quality

In the context of software engineering, software quality refers to two related but distinct notions: Software functional quality; Software structural quality.

Includes knowledge areas

Code quality inspection (Code Climate, Sonarqube)

There are tools that allow checking code before or during its execution to assess its quality and its adherence to coding standards using a process called code analysis. SonarQube is code review and management software. Code Climate provides automated code review for your apps, letting you fix quality and security issues before they hit production.

Linters and Formatters (Prettier, ESLint, StandartJS)

It is worth spending a little bit of extra time now to set up formatting and linting tools that will help keep your code clean and enforce good development practices.

Integration Testing (Super Test, Mocha, Chai)

Integration testing is used to test a group of individual modules, components or piece of units. The main purpose of Integration testing is to find bugs when two or more modules are integrated. To check how two or more modules, components or a different piece of code are will work together.

E2E Testing (Selenium, Puppeteer, SuperTest)

Unlike unit testing, which focuses on individual modules and classes, end-to-end (e2e) testing covers the interaction of classes and modules at a more aggregate level -- closer to the kind of interaction that end-users will have with the production system.

Unit Testing (Jest, Chai, Sinon)

Unit Testing: This testing is used to test a small isolated piece of code, unit testing will be done by developers to test functions or blocks.

Test Driven Development

“Test-driven development” refers to a style of programming in which three activities are tightly interwoven: coding, testing (in the form of writing unit tests) and design (in the form of refactoring).

BDD (Behavior-Driven Devellopment)

In software engineering, behavior-driven development (BDD) is an agile software development process that encourages collaboration among developers, quality assurance testers, and customer representatives in a software project. BDD is an extension to TDD concept, but instead of testing your code you are testing your product, and specifically that your product behaves as you desire it to. Popular tools and frameworks for BDD: Mocha, Chai, Jasmine, Cucumber.js.

Is a part of:

NodeJS

Explore

Heading

HeadingHeading

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.