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

Be able to create a test as a client #40

Open
agoncal opened this issue Jun 18, 2014 · 5 comments
Open

Be able to create a test as a client #40

agoncal opened this issue Jun 18, 2014 · 5 comments
Milestone

Comments

@agoncal
Copy link

agoncal commented Jun 18, 2014

It would be good to easily create a test case run as client with a --runAsClient parameter or something like that. So the command:

arquillian-create-test --value src/main/java/org/MyClass.java --runAsClient

You will endup will the following code

@RunWith(Arquillian.class)
@RunAsClient
public class AuthorEndpointTest
{
    ...
}
@aslakknutsen aslakknutsen added this to the 2.x milestone Jun 18, 2014
@aslakknutsen
Copy link
Member

I was thinking about this as well.

Currently we only allow creating tests based on a Java class, in theory, atleast when we merge in Arquillian Extensions as well, we could create Client tests based on JSF/html pages. Suggesting Drone/Graphene.

@aslakknutsen
Copy link
Member

Spoke a bit with @VineetReynolds as well about possible integrate it with the Scaffolding addon.

@agoncal
Copy link
Author

agoncal commented Jun 18, 2014

Well, that would be the best of the best : scaffolding a Java EE web app including Arquillian tests !

@aslakknutsen
Copy link
Member

We should 'learn' more about the target Class as well. E.g. is it a REST EndPoint we 90% of the time want a RunAsClient setup.

@agoncal
Copy link
Author

agoncal commented Jun 18, 2014

Well, that's the point of Forge : generating code with good practices

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