GithubHelp home page GithubHelp logo

kyoryu-no-go-client's Introduction

Kyoryu No Go - client

Mutation testing badge

A basic React/Redux implementation for the game of Go, and a good excuse to exercise with Firebase, sockets and tests (aiming for 100% coverage, yay!).

Credits to:

Unit Tests

Test Suites: 14 passed, 14 total
Tests:       72 passed, 72 total
Snapshots:   15 passed, 15 total

Code Coverage

-----------------------|----------|----------|----------|----------|-------------------|
File                   |  % Stmts | % Branch |  % Funcs |  % Lines | Uncovered Line #s |
-----------------------|----------|----------|----------|----------|-------------------|
All files              |      100 |      100 |      100 |      100 |                   |
 actions               |      100 |      100 |      100 |      100 |                   |
  board.js             |      100 |      100 |      100 |      100 |                   |
 components            |      100 |      100 |      100 |      100 |                   |
  ActiveColor.js       |      100 |      100 |      100 |      100 |                   |
  App.js               |      100 |      100 |      100 |      100 |                   |
  Board.js             |      100 |      100 |      100 |      100 |                   |
  BoardIntersection.js |      100 |      100 |      100 |      100 |                   |
  BoardMessage.js      |      100 |      100 |      100 |      100 |                   |
  BoardSelector.js     |      100 |      100 |      100 |      100 |                   |
  Captured.js          |      100 |      100 |      100 |      100 |                   |
  PassButton.js        |      100 |      100 |      100 |      100 |                   |
  ResetBoardButton.js  |      100 |      100 |      100 |      100 |                   |
  Stone.js             |      100 |      100 |      100 |      100 |                   |
 reducers              |      100 |      100 |      100 |      100 |                   |
  board.js             |      100 |      100 |      100 |      100 |                   |
  index.js             |      100 |      100 |      100 |      100 |                   |
-----------------------|----------|----------|----------|----------|-------------------|

Mutation Score

I'm just mutating reducers/selectors and action creators. Since visual components have too many mutation points (css properties, classes, etc...), it made no sense to me to test them with mutations.

Ran 50.55 tests per mutant on average.
------------------|---------|----------|-----------|------------|----------|---------|
File              | % score | # killed | # timeout | # survived | # no cov | # error |
------------------|---------|----------|-----------|------------|----------|---------|
All files         |   98.40 |      168 |        17 |          3 |        0 |       0 |
 reducers         |   98.34 |      162 |        16 |          3 |        0 |       0 |
  board.js        |   98.31 |      160 |        15 |          3 |        0 |       0 |
  index.js        |  100.00 |        2 |         1 |          0 |        0 |       0 |
 actions/board.js |  100.00 |        6 |         1 |          0 |        0 |       0 |
------------------|---------|----------|-----------|------------|----------|---------|

kyoryu-no-go-client's People

Watchers

 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.