Technical Test: Difference between revisions

From pega.life
Jump to navigation Jump to search
Line 12: Line 12:


====TDD/Unit Tests/FIRST====
====TDD/Unit Tests/FIRST====
FIRST properties of Unit Tests.
FIRST properties of Unit Tests. http://agileinaflash.blogspot.com/2009/02/red-green-refactor.html
* Fast: unit test must be fast - A software project will eventually have tens of thousands of unit tests, and team members need to run them all every minute or so without guilt.  
* Fast: unit test must be fast - A software project will eventually have tens of thousands of unit tests, and team members need to run them all every minute or so without guilt.  
* Isolated: Tests isolate failures. A good unit test has a laser-tight focus on a single effect or decision. Good tests interferes with no other tests in any way. They impose their initial state without aid from other tests. They clean up after themselves.
* Isolated: Tests isolate failures. A good unit test has a laser-tight focus on a single effect or decision. Good tests interferes with no other tests in any way. They impose their initial state without aid from other tests. They clean up after themselves.
Line 18: Line 18:
* Self-validating: Tests are pass-fail.
* Self-validating: Tests are pass-fail.
* Timely: Tests are written at the right time, immediately before the code that makes the tests pass.
* Timely: Tests are written at the right time, immediately before the code that makes the tests pass.
====TDD: Red/Green/Refactor====
http://agileinaflash.blogspot.com/2009/02/red-green-refactor.html
* Red: Failed test
* Green: Passed test
* Refactor: Clean up. Remove code. make into smaller units. performance.

Revision as of 00:19, 18 April 2022

Technical Test

What is CI/CD?

CICD is the combined practices of continuous integration and continuous delivery or continuous deployment. CI/CD bridges the gaps between development and operation activities and teams by enforcing automation in building, testing and deployment of applications.

MEAN Stack

MEAN (MongoDB, Express.js, AngularJS (or Angular), and Node.js)

Box Model

The CSS box model is essentially a box that wraps around every HTML element. It consists of: margins, borders, padding, and the actual content.

TDD/Unit Tests/FIRST

FIRST properties of Unit Tests. http://agileinaflash.blogspot.com/2009/02/red-green-refactor.html

  • Fast: unit test must be fast - A software project will eventually have tens of thousands of unit tests, and team members need to run them all every minute or so without guilt.
  • Isolated: Tests isolate failures. A good unit test has a laser-tight focus on a single effect or decision. Good tests interferes with no other tests in any way. They impose their initial state without aid from other tests. They clean up after themselves.
  • Repeatable: Tests must be able to be run repeatedly without intervention.
  • Self-validating: Tests are pass-fail.
  • Timely: Tests are written at the right time, immediately before the code that makes the tests pass.

TDD: Red/Green/Refactor

http://agileinaflash.blogspot.com/2009/02/red-green-refactor.html

  • Red: Failed test
  • Green: Passed test
  • Refactor: Clean up. Remove code. make into smaller units. performance.