Build a Tribute Page-testing

How do you run tests on your finished project

Insert this code snippet in your html.

<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>

Find your project and hit run test.

1 Like

you can use this script tag in your HTML
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
A hamburguer menu will appear in the top left of your page, click on it, select your project from the dropdown menu and click on run test.
After running your tests, you can see more information if you click in the test button.

Read the official documentation may help.

https://codepen.io/lucasarvelo/pen/EpgbBx

Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding!

  • The freeCodeCamp Team

// !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place.

/***********
INSTRUCTIONS:

  • Select the project you would
    like to complete from the dropdown
    menu.
  • Click the “RUN TESTS” button to
    run the tests against the blank
    pen.
  • Click the “TESTS” button to see
    the individual test cases.
    (should all be failing at first)
  • Start coding! As you fulfill each
    test case, you will see them go
    from red to green.
  • As you start to build out your
    project, when tests are failing,
    you should get helpful errors
    along the way!
    ************/

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {…} or html {…}, or to all elements within body or html, i.e. h1 {…}, has the potential to pollute the test suite’s CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.