Giter VIP home page Giter VIP logo

fullcalendar-testing-suite's Introduction

FullCalendar Testing Suite

This fork for FullCalendar is dedicated to testing the exposed fullCalendar plugin. It uses karma, PhantomJS, jasmine, jasmine-jquery, jasmine-fixture, jquery.simulate.js

To review setup of FullCalendar please refer to the fullCalendar repo.

Philosophy of this fork

The primary objective in this fork is to generate a complete regression test of fullCalendar. To that end the specs/fullCalendar.js file should be testing all features outlined on fc-homepage.

To contribute, identify a feature, add a describe into specs/fullCalendar.js for the feature, and create nested describes to test each part of that feature. This is in line with the original authors need to have a fully tested user interface.

The philosophy I am adopting in the code itself is purely selfish.

  • Ractoring will be done in fully TDD style. Failing test, code, Succeeding test.
  • Any code refactoring is isolated to this branch; is purely of an academic nature; is not representative of the original authors feature requests, bug fixes, timelines or architectural preferences.
  • Objects are created in functional , not pseudoClassical style.

Getting Set Up

The following components make up the testing

    npm install -g karma
    npm install -g jasmine-node
    npm install -g jasmine-jquery
    download jasmine fixtures into lib\jasmine-fixture\*.js 
    download jquery.simulate.js into lib\jquery-simulate\*.js  

jasmine-jquery,jasmin-fixture,jquery-simulate.

to build and test, from the fullCalendar folded command line

    grunt dev && karma start karma.conf.IntegrationTests.js --single-run

More rigorous testing

Test configurations have been seperated into

     karma.conf.IntegrationTests.js : will run on any rebuild of .build\out\fullCalendar.js
     karma.conf.regression.js : will run on any change to specs/fullCalendar.js against a previous version in the regression folder.
     karma.conf.UnitTests.js : will run on any change to specs/**/*.js or any change to src/**/*.js 

Seperating out the tests in this way allows me to do quick TDD cycles and doesn't require waiting for the regression or integration tests to complete.

My current test setup is to keep 4 consoles open

  1. :>grunt dev
  2. :>karma start karma.conf.IntegrationTests.js --single-run
  3. :>karma start karma.conf.regression.js
  4. :>karma start karma.conf.UnitTests.js

Extra testing can be done using AutoHotKey, an example .ahk file is included in the tests folder.

fullcalendar-testing-suite's People

Contributors

arshaw avatar grleachman avatar jagthedrummer avatar tpruvot avatar ivaynberg avatar clemens-panda avatar urkle avatar godbout avatar markusslima avatar althaus avatar tardate avatar thegrandpoobah avatar stephenharris avatar tkrotoff avatar tauren avatar archaeron avatar

Watchers

 avatar James Cloos 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.