Coder Social home page Coder Social logo

Comments (6)

bruderol avatar bruderol commented on August 16, 2024

@adiherzog and @ideco I started to migrate to junit 5 on the feature branch - tests are allready running with junit 5 platform using vintage - but still use junit 4 syntax. Next step will be to migrate to new syntax (should be more or less easy) using jupiter.

Question: what do you think should we make the example junit 5 only or still keep the junit 4 example (e.g. on a special junit4 branch)??

from pizza-delivery.

bruderol avatar bruderol commented on August 16, 2024

And ... guess what ... there are 'Tag' and 'DisplayName' Annotations that might be interesting for us

from pizza-delivery.

adiherzog avatar adiherzog commented on August 16, 2024

Cool, JUnit 5 looks nice. But I think we should also keep the JUnit 4 example for a while (in parallel), as JUnit 5 adoption is probably not so high yet. Or as an alternative we could just add comments wherever you would do something differently in JUnit 4.

from pizza-delivery.

ideco avatar ideco commented on August 16, 2024

+1 for keeping them in parallel (maybe in a separate test folder?)

Also: http://junit.org/junit5/docs/current/api/org/junit/jupiter/api/extension/BeforeAllCallback.html this seems ideal for setting up the scenarioo build folder

from pizza-delivery.

bruderol avatar bruderol commented on August 16, 2024

@ideco I think BeforeAll is just the same as BeforeClass was in JUnit 4 - so it wont help much to replace the static test setup for all test classes. But I think it's not so bad - it is ok how we solved it in the current example.

@adiherzog and @ideco I agree with your other statements - therefore I propose the following:

  1. do a special junit4 branch with current version of the example
  2. Link from the readme on develop branch to that branch

I not consider both examples in one branch as an option since this makes it more difficult to understand the example when there are both dependencies.

from pizza-delivery.

bruderol avatar bruderol commented on August 16, 2024

Done, see PR #21 - I close this

from pizza-delivery.

Related Issues (10)

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.