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

[core] Enhancement: Configure working directory for execution #39

Closed
glenviewjeff opened this issue May 28, 2011 · 2 comments
Closed

[core] Enhancement: Configure working directory for execution #39

glenviewjeff opened this issue May 28, 2011 · 2 comments
Labels
comp:core core feature of infinitest (infinitest-lib + infinitest-runner)) type: feature
Milestone

Comments

@glenviewjeff
Copy link

Thanks for the awesome free alternative to JunitMax, I love it!

I am using a tool called Robolectric for Android mock-like unit testing on a host PC. It has kind of a kludgy design where you create a separate test project, but need to specify in the Eclipse run configuration to execute the test project from the working directory of the main project.

The tests fail because there's no way to configure Infinitest to do this as far as I can tell. I couldn't find any JVM option to change the working directory (I presume that's up to the caller of the JVM, not the JVM itself.)

Incidentally, please consider hosting a forum, since that seems like a better place to post a request like this.

Thanks!
Jeff

@elefevre
Copy link
Collaborator

I don't believe that's possible.
A workaround might be to pass parameters to infinitest and configure
something with it from within the tests. See more about infinitest.args
here: http://infinitest.github.com/user_guide.html

Eric

On 28 May 2011 07:00, glenviewjeff <
reply@reply.github.com>wrote:

Thanks for the awesome free alternative to JunitMax, I love it!

I am using a tool called Robolectric for Android mock-like unit testing on
a host PC. It has kind of a kludgy design where you create a separate test
project, but need to specify in the Eclipse run configuration to execute the
test project from the working directory of the main project.

The tests fail because there's no way to configure Infinitest to do this as
far as I can tell. I couldn't find any JVM option to change the working
directory (I presume that's up to the caller of the JVM, not the JVM
itself.)

Thanks!
Jeff

Reply to this email directly or view it on GitHub:
#39

@glenviewjeff glenviewjeff reopened this Jan 2, 2012
@ghost ghost assigned dgageot Jan 5, 2012
@sarod sarod changed the title Enhancement: Configure working directory for execution [core] Enhancement: Configure working directory for execution May 17, 2018
@sarod sarod added the comp:core core feature of infinitest (infinitest-lib + infinitest-runner)) label May 17, 2018
@sarod sarod added this to the 5.3.0 milestone May 17, 2018
@gtoison
Copy link
Contributor

gtoison commented Nov 5, 2022

As proposed above a solution is to set the working dir in the infinitest.args file, for instance -Duser.dir=C:/tests

@gtoison gtoison closed this as completed Nov 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:core core feature of infinitest (infinitest-lib + infinitest-runner)) type: feature
Projects
None yet
Development

No branches or pull requests

5 participants