Giter Club home page Giter Club logo

pgdp-tests-ws21-22's Introduction

PGdP-Tests-WS21-22

PGdP-Tests-WS21/22 is a student-created repository used to share code tests.

Important Note:

In the near future, most exercises will contain test parts, like in W03H02. Therefore, this repository will only contain tests for the other parts.


"Legal status"

Es ist alles erlaubt, was die Lösung nicht verrät.

The so-called Übungsleitung will have an eye on this repository. But as long as the tests do not reveal the solution of the homework, this repository will be tolerated. To ensure the solution is not getting revealed, the tests should be Input/Output-Tests.

The Übungsleitung is not responsible for this repository. Therefore no support is given by the Übungsleitung. Just use the Issue feature here.

Examples:

correct:

// Test Area calculation
// Arrange
Rectangle r1 = new Rectangle(length: 4, width: 4)
// Act & Assert
assertEquals(16, r1.calculateArea());

wrong!:

// Test Area calculation
// Arrange
Rectangle r1 = new Rectangle(length: 4, width: 6)
// Act & Assert
// Calculate using length * width             // <-- reveales the solution
assertEquals(4*6, r1.calculateArea()); // <-- reveales the solution

Usage

  1. Clone this repository
git clone https://github.com/LadnerJonas/PGdP-Tests-WS21-22.git
  1. Check for updates
git pull
  1. Add the test folder to your src-folder of your artemis java project

    Or use the syslink instruction below.

  2. Make sure your IDE (e.g. IntelIJ or Eclipse) sees your added files

  3. Include JUnit to your Project by pressing the red lightbulb (or ALT + ENTER in IntelIJ) on one of the red underlined @Test Annotations in the test file.

image

  1. Do not add them to your artemis git repository
  2. Run the tests and check your mistakes

image

image

Important note

As this is a student-driven project please keep in mind that mistakes can happen. If you think a test is wrong, please feel free to open an Issue (it is easy!). To help fixing bugs, please add following info to your Issue:

  • Operating system
  • IDE (IntelIJ, Eclipse, ...)
  • Where is the mistake / error
  • Citation of the homework instruction

How to use syslinks (Advanced Users only!)

Windows

This has to be executed in the command line, run as administrator:

$ mklink /d \path\to\src\tests \path\to\repository\tests

Linux/MacOS

$ ln -s /path/to/repository/tests /path/to/src/

Shoutout to the Contributors of the TUM_GAD_Tests_SS21-Repository for this great tip!


How to contribute

  1. Fork Repository (Github Documentation)
  2. Add / edit tests under <EXERCISE>/src/test
  3. Ensure no solution or homework-code is getting revealed
  4. Commit and push to your fork repository
  5. Open a Pull Request to this repository (Github Documentation)
  6. Wait until the changes are merged

Helpful links

Write Tests using JUnit 5

How to use Git

How to use Github


Contact

Feel free to contact me via email, but consider using google beforehand:

[email protected]


pgdp-tests-ws21-22's People

Contributors

ladnerjonas avatar dorianim avatar jpx3 avatar mariusdkm avatar paulzhng avatar 0xreself avatar antecrescent avatar 16domsim avatar ewelohd avatar elder1ch avatar rank-p avatar nkrofta 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.