GithubHelp home page GithubHelp logo

registerform's Introduction

RegisterForm

Repo for CSC-591 Milestone 2.

###Group Members

  1. Abidaan Nagawkar (ajnagawk)
  2. Shivaji Vidhale (savidhal)
  3. Sushil Ganesh (sganesh4)

###Test ####Unit Testing The Unit Test is described in the file 'unitTest.js'. The Jenkins Server is configured to automatically run this test each time new code is committed to the repository. The success or failure of the build dependends on whether the unit test passes or fails.

####Advanced Testing Technique and Coverage Report We have implemented Constraint-Based Test Generation in order to improve testing coverage (main.js). With this technique, constraints on the argument list of various methods are taken into consideration and test cases are automatically generated. These test cases improve testing coverage as various (correct and incorrect) permutations of argument values are passed to individual methods in the code. At the end of testing, a coverage report is displayed which shows statistics such as Branch Coverage, Statement Coverage, etc.

####Testing Gate We have implemented a simple testing gate (testCoverage.sh), which will result in build failure if branch coverage is less than 75%.

####Security Token Gate We don't want to commit any code that has any access keys hard-coded as these keys can be misused. Therefore, we have implemented a pre-commit git hook (checkKeys.js) that checks the code for any such keys and rejects the commit if any are found.

####Screencast: Details of the App and demonstration of Security Gate AppDetails

####Screencast: Unit Testing, Coverage and Testing Gate Test

###Analysis ####Base Analysis using existing Static Analysis Tools ESLint has been used in order to perform a static analysis of the application (scripts/statisAnalysis.sh). This script basically runs ESLint on our application code and displays the results on the console as warnings or errors. The build fails if ESLint finds any errors but in our configuration, warnings do not fail the build.

####Extended Analysis We have implemented a simple extended analysis (main.js, scripts/extendedAnalysis.sh) which displays the ratio of comments to actual code. In the main.js file, we have modified the options that we pass to esprima to include comments as well. We have written simple code that counts the number of comments (single-line) or the number of lines of comments (multi-line). Our extendedAnalysis.sh script basically counts the total number of lines of code and subtracts the number of comments to display the ratio of comments to actual code.

####Analysis Gate In our base analysis, we used ESLint which as per the configuration file reports errors, ad if any errors exist, the build fails. Like when the eslintrc file could not recognize Mocha keywords, it threw errors and the build failed. By making changes to the '.eslintrc' file as desired, builds can be accepted successfully. Therefore, we can configure ESLint to cause the build to fail if certain conditions are not satisfied.

####Screencast: Base Analysis, Extended Analysis and Analysis Gate Analysis

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.