/prime-table

Displays a multiplication table of prime numbers for a given size.

Primary LanguageJavaScriptOtherNOASSERTION

CircleCI branch Codecov branch

Prime Table

Displays a multiplication table of prime numbers for a given size. The finding of prime numbers uses a simple segmented sieve of Eratosthenes.

Usage

  • Ensure Docker is installed and running.
  • Build and run the docker image: docker-compose up
  • Navigate to http://localhost

Development

Testing

Testing is composed of:

  • Mocha as the test runner.
  • Chai for assertions.
  • SinonJS for spys, stubs and mocks.
  • Enzyme for testing React components.
  • Istanbul for code coverage reporting.

Testing is triggered by a single npm script: yarn test.

Once the tests have completed, coverage reports can be found in the coverage/ directory and mocha will also convert the test results into a JUnit style test-results.xml at the root level.