Giter VIP home page Giter VIP logo

Comments (4)

joel-costigliola avatar joel-costigliola commented on August 26, 2024

Generate the file once, move it to source control and add your assertion manually.
You can generate the assertions again in the future if the domain classes change and transfer any new assertions method to the Assert class you have moved in source control.

from assertj-assertions-generator-maven-plugin.

j-maly avatar j-maly commented on August 26, 2024

So manual merging... when the file is in SC, it is readonly and the maven plugin fails in that case. Would it be possible to add a setting to just continue when the target file is readonly instead of failing? That would allow me to still automatically create the Assertions file (I don't want to merge that one manually).

from assertj-assertions-generator-maven-plugin.

joel-costigliola avatar joel-costigliola commented on August 26, 2024

Let the maven plugin generates stuff in target directory, open the generated Assert file and copy the new assertions in the Assert class in source control.

This plugin was meant to quickly start using custom assertions but I always had in mind that once generated they should be moved to source control and enriched with hand written assertions that the generator can't create.

from assertj-assertions-generator-maven-plugin.

joel-costigliola avatar joel-costigliola commented on August 26, 2024

The work to keep manually written assertions requires a huge change in the assertion generator as it was not designed with that purpose in mind. I'm closing this issue for that reason, I like the idea though.
Moreover as custom assertions templates are going to be supported, users will be able to generate richer assertions, it does not completely address this issue but should improve things.

from assertj-assertions-generator-maven-plugin.

Related Issues (20)

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.