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

CaseAs does not work with JUnit 5 #372

Closed
janschaefer opened this issue Oct 23, 2018 · 2 comments
Closed

CaseAs does not work with JUnit 5 #372

janschaefer opened this issue Oct 23, 2018 · 2 comments
Milestone

Comments

@janschaefer
Copy link
Contributor

CaseAs workaround:

In Junit5 parameterized test call getScenario().getScenarioCaseModel().setDescription() to set the case description using whatever parameter values you need.

It would be great if these workarounds were not necessary and CaseAs worked properly with junit5 parameterized tests.

@janschaefer janschaefer modified the milestones: v0.17.0, v0.16.2 Oct 23, 2018
@janschaefer janschaefer modified the milestones: v0.16.2, v0.17.0 Oct 23, 2018
@janschaefer
Copy link
Contributor Author

After a first analysis, I think fixing this depends on junit-team/junit5#944

CC: @mmadson

@janschaefer
Copy link
Contributor Author

I implemented an ugly workaround that uses reflection to get the arguments out of the ExecutionContext. This is similar to the workaround that also exists for JUnit 4 that had the same problem.

janschaefer pushed a commit that referenced this issue Oct 28, 2018
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

1 participant