Giter Site home page Giter Site logo

hazem-ben-khalfallah / test-cherry Goto Github PK

View Code? Open in Web Editor NEW
8.0 8.0 2.0 342 KB

:cherries: An Intellij Plugin that generates unit test methods with meaningful names based in described behaviours with @should tags in methods javadoc

License: MIT License

Java 100.00%

test-cherry's People

Contributors

hazem-ben-khalfallah avatar hazem-ncq avatar yanislavcs avatar yanislavm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

yanislavm nashid

test-cherry's Issues

Support for junit5

It would be very nice to get support for generating junit5 tests, since junit5 will be the preferred version in our ICT education (https://fontys.edu/ict/) from February 2021.
many thanks in advance.

Add description on how to use Test Cherry in combination with generating javadoc

When generating javadoc from code, the javadoc tool generates errors while encountering the TestCherry tags:

error: unknown tag: should
error: unknown tag: verifies

This can be solved by adding the following to the javadoc commandline:
-tag should:a:"Should:" -tag verifies:a:"Verifies:"

In IntelliJ, this could be done by adding it at the 'Other command line arguments'
image

Even though this is more a workaround, I think it is a good idea to add this to the TestCherry documentation (Readme.md ?), so more people can use this tool.

NullPointer Exception in IntelliJ

It seems that some refactoring tasks in IntelliJ are causing NPEs

Error during processing of: ForwardingReceiverController.java
java.lang.NullPointerException
    at com.blacknebula.testcherry.refactor.ShouldReference.resolve(ShouldReference.java:85)
    at com.intellij.psi.impl.search.MethodTextOccurrenceProcessor.processReference(MethodTextOccurrenceProcessor.java:53)
    at com.intellij.psi.impl.search.MethodTextOccurrenceProcessor.processTextOccurrence(MethodTextOccurrenceProcessor.java:33)
    at com.intellij.psi.impl.search.PsiSearchHelperImpl$5.lambda$execute$0(PsiSearchHelperImpl.java:942)
    at com.intellij.psi.impl.search.LowLevelSearchUtil.processTreeUp(LowLevelSearchUtil.java:88)
    at com.intellij.psi.impl.search.LowLevelSearchUtil.lambda$processElementsAtOffsets$0(LowLevelSearchUtil.java:179)
    at com.intellij.psi.impl.search.LowLevelSearchUtil.processOffsets(LowLevelSearchUtil.java:205)
    at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsAtOffsets(LowLevelSearchUtil.java:178)
    at com.intellij.psi.impl.search.PsiSearchHelperImpl$5.execute(PsiSearchHelperImpl.java:938)
    at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:272)
    at com.intellij.psi.impl.search.PsiSearchHelperImpl$2.processInReadAction(PsiSearchHelperImpl.java:263)
    at com.intellij.openapi.application.ReadActionProcessor.lambda$process$0(ReadActionProcessor.java:25)
    at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:844)

Can you update TestCherry for intelliJ 2022 versions?

My students now need to download the 2021 versions of intelliJ, which becomes increasingly difficult with dependencies on newer plugins for the 2022 intelliJ version.
Can you tell if a new version can be created?
many thanks in advance.

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.