Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow @Format for @Test method parameter #114

Closed
nikowitt opened this issue Sep 5, 2015 · 3 comments
Closed

Allow @Format for @Test method parameter #114

nikowitt opened this issue Sep 5, 2015 · 3 comments
Assignees
Milestone

Comments

@nikowitt
Copy link
Contributor

nikowitt commented Sep 5, 2015

It's me again :)

   public void check_last_award_date(DateTime expectedDate,
                                      Integer quotationPositionToRemoveAwardDateFrom,
                                      DateTime... providedDates)   throws Exception {

creates a report like

 Case 1: expectedDate = 2015-01-01T00:00:00.000+01:00,
quotationPositionToRemoveAwardDateFrom = null, providedDates =
2015-01-01T00:00:00.000+01:00

Even when I supply a @Formatter to the variables, the report still looks the same. Appearantly, @Formatters are only evaluated inside the test class, but not on the test class itself.

Best regards,
Niko

@janschaefer
Copy link
Contributor

Well, I have expected that, after I saw your report ;-)

Currently, the formatters are only used for step methods. The problem is a bit, that the parameter values only appear if you have multiple cases, but no data table. However, I think this feature is quite useful and should also not be too difficult to implement.

@janschaefer janschaefer added this to the 0.8.1 milestone Sep 5, 2015
@janschaefer janschaefer self-assigned this Sep 5, 2015
@janschaefer
Copy link
Contributor

It was nearly trivial to implement ;-)

@nikowitt
Copy link
Contributor Author

nikowitt commented Sep 6, 2015

Nice to hear that :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants