Giter Site home page Giter Site logo

hw07's Introduction

MI-AFP homework #07

Homework to practice IO basics, testing, and project documentation

Task

This time you will work on a "half-done" smaller project called SELF-TESTER.

  1. CLI = your task is to implement command line interface so a user can do a self-test in console interactively. First, you need to explore the code a bit and then implement Tester.CLI (some requirements are there in comments). The test should be loaded from a JSON file (using aeson library, see Tester.Model.AesonInstances), the file is provided via argument. There are also some behavioral options... Then the interface should ask questions and show results. No tests are provided. You can run the CLI with stack exec selftester (after stack build). Since there are no tests, you can use your creativity as well as change/extend given modules as you need.
  2. Tests = second task is to write tests using HSpec and also its integration with QuickCheck for testing properties. Tests dependencies have to be specified by you. You can get some inspiration from previous hws. Everything should be tested... If you find some problems, fix them. We will try to make faulty implementations and check if those will or won't pass your tests.
  3. Documentation = final task is to write Haddock documentation for Tester modules - keep it short and clear... but complete and comprehensive!
% stack build
% stack test
% stack haddock
% stack exec selftester ./haskell-test.json learn
% stack exec selftester ./haskell-test.json train
% stack exec selftester ./haskell-test.json

Notes

  • If you encounter some trouble, create an issue in your repository.
  • In case you find a bug or have an idea how to improve assignment project, create an issue or PR in this repository.

License

This project is licensed under the MIT License - see the LICENSE file for more details.

hw07's People

Contributors

mareksuchanek avatar

Stargazers

 avatar

Watchers

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