Remove Continuous Integration Remove Examples Remove Test-Driven Development
article thumbnail

Getting started with continuous integration for Nest.js APIs

CircleCI

For example, whenever you send an HTTP POST request from the front end to a Node.js toBeDefined(); }); }); We will add more tests to make this fully cover all the methods defined within the ProductService. Writing a test for the ‘create’ and ‘get’ products methods. and wrote the tests for its business logic. Conclusion.

article thumbnail

Test-Driven Development and the Cycle of Observation

Code Simplicity

Today there was an interesting discussion between Kent Beck , Martin Fowler , and David Heinemeier Hansson on the nature and use of Test-Driven Development (TDD), where one writes tests first and then writes code. It’s possible to minimize this point and say it’s only relevant to debugging or testing.

Insiders

Sign Up for our Newsletter

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

article thumbnail

Developer Testing

Henrik Warne

These frameworks encourage and help developers write automatic tests. Despite this trend of increasing developer testing, my feeling is that many developers still don’t test their programs well enough. For example, they may test the “happy path”, but not the different error handling cases.

Testing 119
article thumbnail

Guide to using Docker for your CI/CD pipelines

CircleCI

Docker enables the most powerful benefits of continuous integration and delivery : building and testing in isolation. Building CI/CD pipelines with Docker takes advantage of clean containers to eliminate any dependency issues that arise from local application development. Using Docker images. CI/CD for Node.js

AWS 111
article thumbnail

AoAD2 Practice: Refactoring

James Shore

Test-Driven Development. Technically, you can refactor at any time, but unless your IDE has provably-safe refactorings, it’s best to do it when you have a good suite of tests that are all passing. To illustrate this point, I’ll continue the example started in “A TDD Example” on p.XX. How to Refactor.

article thumbnail

AoAD2 Practice: Collective Code Ownership

James Shore

Continuous Integration. Finally, continuous integration will prevent painful merge conflicts and keep everyone’s code in sync. For example, when making changes to a service, don’t say, “We need to change SuperMailClient. Test-Driven Development. Test-Driven Development.

article thumbnail

Clojure microservices for JavaScript developers

CircleCI

Testing and Continuous Integration. In JavaScript, you can get around this with an immutability library; for example, Immutable.js , Lodash , or Ramda. For example, say that the return type of a function should be a prime number. In this example, we create a definition that is equal to an unevaluated function call.