Giter VIP home page Giter VIP logo

exponential-testing's Introduction

EXPONENTIAL NOTES


Overview:

Exponential Notes is a testing frame work in JS created by

  • https://github.com/toddpla,

  • https://github.com/RyanWolfen7

    We created Exponential Notes, after learning JS just two days
    prior, to gain a better understanding of both how JS and
    Testing FrameWorks work. Another goal we had was to have a
    functioning frame work to utilize for a 6 person team challenge
    to make a single page web app
    https://github.com/RyanWolfen7/exponential-notes
    without using any pre-existing FrameWorks.
    

How to use this FrameWork

  • Simply clone this file into your JS project
git clone https://github.com/RyanWolfen7/exponential-notes.git
  • Update the testing suite into the TestRunner.html file
#### In TestRunner.html ####
<!-- testing suite -->
<script src="../[YOUR_PROJECT_PATH]/lib/Expect.js" type="text/javascript"></script>
  • Add your Model paths to the models in the TestRunner.html file
#### In TestRunner.html ####
<!-- models -->
<script src="../lib/EXAMPLE.js" type="text/javascript"></script>
<script src="../lib/EXAMPLE_TWO.js" type="text/javascript"></script>
<script src="../lib/views/EXAMPLE.js" type="text/javascript"></script>
  • Create a test runner in the spec file
touch spec/fileYouAreTesting.js
  • Add your files to the TestRunner.html TestRunner
#### In TestRunner.html ####
<!-- test runner -->
<script src="tests.js" type="text/javascript"></script>
<script src="fileYouAreTesting.js" type="text/javascript"></script>
  • Then copy the TestRunner.html path into you preferred browser
  • open up the dev tools and look at the console.
Example:

Alt text

  • Please Note that You have to write your own console.log statements
Example:
console.log("### EXPECT TESTS ###")
console.log("--------------------")
console.log("Expects 1 to equal 1")
expect(1).toEqual(1)

Contributing

Feel Free to add to, adjust, or completely reconfigure this any way you see fir. This is mostly just a showcase for our skills with Test Driven Development, but if you feel compelled to make our frame work more robust for this repo and submit a pull request.

exponential-testing's People

Contributors

ryanwolfen7 avatar toddpla avatar

Stargazers

 avatar

Watchers

James Cloos avatar

Forkers

rupert-adams

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.