Coder Social home page Coder Social logo

Comments (8)

kingsleyh avatar kingsleyh commented on August 18, 2024

I agree - but unfortunately I'm extremely pushed for time and as you can probably tell I haven't made any improvements in the last 9 months - which coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected for mocking purposes?


Reply to this email directly or view it on GitHub.

from cucumber-reporting.

anoordover avatar anoordover commented on August 18, 2024

I would like to make choices you can support as well. So can you make a
choice about the strategy to follow.
So:

  1. Mockito with powermockito;
  2. EasyMock
  3. Implement a method for setting factory so mockito can be used without
    powermockito
  4. Another strategy

Gr Arno

Btw i have send you a pull request for the template change. Can you take a
look?
Op 29 jan. 2014 21:57 schreef "Kingsley Hendrickse" <
[email protected]>:

I agree - but unfortunately I'm extremely pushed for time and as you can
probably tell I haven't made any improvements in the last 9 months - which
coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any
improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected
for mocking purposes?

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-33629769
.

from cucumber-reporting.

kingsleyh avatar kingsleyh commented on August 18, 2024

Hi

In the long term I'd like to move to java 8 and take a more functional style.

I'm sure significant improvement could be made with totally lazy.

But as per your question - I have no strong preference - feel free to make a choice.

Sent from my iPhone

On 29 Jan 2014, at 21:05, anoordover [email protected] wrote:

I would like to make choices you can support as well. So can you make a
choice about the strategy to follow.
So:

  1. Mockito with powermockito;
  2. EasyMock
  3. Implement a method for setting factory so mockito can be used without
    powermockito
  4. Another strategy

Gr Arno

Btw i have send you a pull request for the template change. Can you take a
look?
Op 29 jan. 2014 21:57 schreef "Kingsley Hendrickse" <
[email protected]>:

I agree - but unfortunately I'm extremely pushed for time and as you can
probably tell I haven't made any improvements in the last 9 months - which
coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any
improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected
for mocking purposes?

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-33629769
.


Reply to this email directly or view it on GitHub.

from cucumber-reporting.

anoordover avatar anoordover commented on August 18, 2024

Is she your first? Your baby girl?
Op 29 jan. 2014 21:57 schreef "Kingsley Hendrickse" <
[email protected]>:

I agree - but unfortunately I'm extremely pushed for time and as you can
probably tell I haven't made any improvements in the last 9 months - which
coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any
improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected
for mocking purposes?

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-33629769
.

from cucumber-reporting.

kingsleyh avatar kingsleyh commented on August 18, 2024

Yep !!

Sent from my iPhone

On 29 Jan 2014, at 21:19, anoordover [email protected] wrote:

Is she your first? Your baby girl?
Op 29 jan. 2014 21:57 schreef "Kingsley Hendrickse" <
[email protected]>:

I agree - but unfortunately I'm extremely pushed for time and as you can
probably tell I haven't made any improvements in the last 9 months - which
coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any
improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected
for mocking purposes?

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-33629769
.


Reply to this email directly or view it on GitHub.

from cucumber-reporting.

anoordover avatar anoordover commented on August 18, 2024

Nice photo on facebook?!

Kingsley Hendrickse [email protected]:

Yep !!

Sent from my iPhone

On 29 Jan 2014, at 21:19, anoordover [email protected] wrote:

Is she your first? Your baby girl?
Op 29 jan. 2014 21:57 schreef "Kingsley Hendrickse" <
[email protected]>:

I agree - but unfortunately I'm extremely pushed for time and as you can
probably tell I haven't made any improvements in the last 9 months - which
coincides directly with the birth of my baby girl.

If you have the time and are willing please feel free to make any
improvements you think necessary and send me a pull request.

Sent from my iPad

On 29 Jan 2014, at 20:47, anoordover [email protected] wrote:

I think that the class ReportBuilder does to much.
It prepares variables for the reports.
It starts the merging with a Freemarker template.
It writes the result to a file.
I think writing tests for this class is therefore to hard.
Should we use mockito to do the unittest?
How can we enhance testability?
Instantiation of classes is much harder to mock.
Should we use use powermockito or use factories which can be injected
for mocking purposes?

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/51#issuecomment-33629769
.


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub:
#51 (comment)

from cucumber-reporting.

btaz avatar btaz commented on August 18, 2024

Thumbs up for Mockito with powermockito.
And how about using Cucumber for testing?

from cucumber-reporting.

damianszczepanik avatar damianszczepanik commented on August 18, 2024

Have been improved and will be even better in version 1.x.x

from cucumber-reporting.

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.