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

Not a file or directory: .../pretty #38

Open
Glamdring opened this issue Feb 6, 2014 · 6 comments
Open

Not a file or directory: .../pretty #38

Glamdring opened this issue Feb 6, 2014 · 6 comments

Comments

@Glamdring
Copy link

I'm running the sbt-cucumber-plugin on Windows, with cygwin.

I get: Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory: C:\Users\workspace\pretty

However, the "out" files contains the following:

�[0m[�[0mdebug�[0m] �[0mJVM Settings: JvmSettings(List(<..>\target\scala-2.10\test-classes, <..>\target\scala-2.10\classes, <..>.sbt\boot\scala-2.10.3\lib\scala-library.jar, <...etc classpathentries>,cucumber.api.cli.Main,LoggedOutput(sbt.MultiLogger@1e6bfa26),Map(),List(),Some(256M),Some(64M))�[0m
�[0m[�[0mdebug�[0m] �[0mCucumber Options: Options(classpath:,,List(),,,false,false,false)�[0m
�[0m[�[0mdebug�[0m] �[0mCucumber Output: Output(false,false,false,false,<..>\target\scala-2.10.3\cucumber.txt,<..>\target\scala-2.10.3\cucumber-report,<..>\target\scala-2.10.3\cucumber.xml,<..>\target\scala-2.10.3\cucumber.json)�[0m
�[0m[�[0minfo�[0m] �[0mRunning cucumber...�[0m

(here it gets interesting)
�[0m[�[0mdebug�[0m] �[0m-classpath <...same classpath as above - classes folders and jars) <..>.ivy2\cache\org.scala-tools.testing\test-interface\jars\test-interface-0.5.jar -Xmx256M -XX:MaxPermSize=64M cucumber.api.cli.Main --glue --format pretty --name classpath:�[0m
�[0m[�[31merror�[0m] �[0mException in thread "main" java.lang.IllegalArgumentException: Not a file or directory: C:\Users\workspace\pretty[0m

Three things that bother me:

  • the line that is supposed to print the classpath, also prints ..cliMain and a bunch of command-line options
  • cucumberSettings from the build config are reflected (i.e. when I add CucumberPlugin.cucumberHtmlReport := true, --format html is added to that line), but "pretty" is always there, regardless of what is configured
  • there are two spaces after --glue

I don't know whether the two spaces might be an issue on windows (and not be an issue on linux, for example), but that's what I find suspicious.

@Glamdring
Copy link
Author

And when I create the folder "pretty", it finds it and I get:

None of the features at [pretty] matched the filters: [classpath:]

@maciejjaskowski
Copy link

We have the same problem on Windows 7 in 'cmd'

@chetandewangan
Copy link

I am also facing same issue in Windows 8.1

with

Exception in thread "main" cucumber.runtime.CucumberException: Couldn't load formatter class: json-pretty

@asotrox
Copy link

asotrox commented Apr 15, 2014

I'm running the sbt-cucumber-plugin on Windows, WITHOUT cygwin. Despite my best attempts, I haven't been able to get anything to work. Although I enjoy writing the features in a separate, it would seem the FeatureSpec is the only way to go at the moment.

[info] Running cucumber...
[error] Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory: C:\project\pretty
[error]         at cucumber.runtime.io.FileResourceIterator$FileIterator.<init>(FileResourceIterator.java:54)
[error]         at cucumber.runtime.io.FileResourceIterator.<init>(FileResourceIterator.java:20)
[error]         at cucumber.runtime.io.FileResourceIterable.iterator(FileResourceIterable.java:19)
[error]         at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:51)
[error]         at cucumber.runtime.model.CucumberFeature.load(CucumberFeature.java:33)
[error]         at cucumber.runtime.RuntimeOptions.cucumberFeatures(RuntimeOptions.java:124)
[error]         at cucumber.runtime.Runtime.run(Runtime.java:89)
[error]         at cucumber.api.cli.Main.run(Main.java:20)
[error]         at cucumber.api.cli.Main.main(Main.java:12)
[trace] Stack trace suppressed: run last *:cucumber for the full output.
[error] (*:cucumber) There were failed tests.
[error] Total time: 3 s, completed Apr 15, 2014 9:37:26 AM

@chetandewangan
Copy link

I am also facing same issue :

Exception in thread "main" java.lang.IllegalArgumentException: Not a file or directory: /pretty

How to resolve this issue?

@ezhiljohnson
Copy link

Any advice from anyone, on how to solve this problem?

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

No branches or pull requests

5 participants