Coder Social home page Coder Social logo

build-and-test-close-the-deal's Introduction

Close the deal exercise

1. Test Visibility

Find how to setup this project.

Fork repository

First thing is to fork this repository:

For the repository

It's important that you fork into the DataDog namespace. Choose a name like build-and-test-close-the-deal-$YOUR_NAME.

Keep the repository page open in a tab at all times.

Set DD_API_KEY as secret in your repository.

Follow the in app onboarding

  • Go to https://app.datadoghq.com/ci/setup/test and follow the instructions.
  • Do not select the type of CI provider we're using.
  • Test framework: Jest.
  • Write your DD_ENV: use something that identifies you, such as "test-juan".
  • Set DD_SERVICE to close-the-deal-tests.

Enable Intelligent Test Runner

Enable GitHub PR comments

  • Activate the toggle.
  • Click on "Save".

Enable Early Flake Detection

  • Activate the toggle.
  • Select "main" as default branch.

Change your GHA workflow

  • Scroll up to the "Run your tests" section.
  • Copy the snippet of code at the right side.
  • Go to test.yml and substitute the "Run tests" step's current command by the snippet.
  • IMPORTANT: Make sure you are not committing any API Key.
  • Commit directly to main.

See results in Datadog

2. Intelligent Test Runner

We're going to test Intelligent Test Runner's capability to skip tests by modifying a file that's used by a single test.

  • Modify array.js by uncommenting the line following the comment in calculateAverage.
  • Commit changes in a different branch from the default branch. You can use feature-branch-itr or something similar.
  • See Intelligent Test Runner savings in the branch page.

3. Early Flake Detection

We're going to test Early Flake Detection's capability to detect flakiness early.

  • Modify array.test.js by uncommenting the last test
  • Commit changes in a different branch from the default branch. You can use feature-branch-efd or something similar.
  • See flakiness being detected in the branch page.

build-and-test-close-the-deal's People

Contributors

juan-fernandez avatar gturbat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.