Giter Club home page Giter Club logo

software-testing-workshop's Introduction

git-workshop

Repository for the BIF Software Testing workshop

Introduction

This is the repository used in the Software Testing Workshop for the WUR Bioinformatics group. This repository contains a number of exercises relating to the workshop, but should stand on their own as well.

This set of exercises only assumes you have python 3.x installed and have a basic familiarity with PIP

  1. Clone this repository to begin.

  2. Navigate to the repository folder in a shell, then run python -m unittest. You should see an output like this:

    $ python -m unittest
    .
    ----------------------------------------------------------------------
    Ran 1 test in 0.000s
    
    OK
    

    If you can see the above output, you can continue. If the above says something like Ran 0 tests in 0.000s let me know (or submit an issue if you are reading this online)

  3. Install the coverage module by running pip install coverage

  4. Start doing exercises!

    • Basic testing exercises are in exercises/basics.md
    • Unit testing exercises are in exercises/unit.md
    • An exercise for integration testing in exercises/integration.md
    • If you have time, extra testing info and exercises are in exercises/extra.md

    All commands listed in the exercises are run in the root directory of the repository (the same directory as this readme file). It may be a good idea to have an IDE open to modify code while keeping a separate shell to execute commands.

Reading material

All of the exercises here are using the python built-in unittest, which you can read here: https://docs.python.org/3/library/unittest.html#module-unittest

There is a lot more to testing than is covered in this material. Of special interest may be the List of assert methods

I did not take any material from the above links, but they may supplement the exercises you find here.

Note: Usage of AI code generation

GitHub Copilot was used to generate some of the content in this repository, with the exception of this readme file and the markdown files under exercises/

Feel free to use copilot to suggest or generate unit tests for you within this workshop, but note that it is especially important to check tests written by AI, as AI may not understand (or care about, for that matter) the full context of your code and what makes a correct test!

If you are a member of the BIF group, please check if you can use AI code generation in your work outside of this workshop before using it.

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.