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

Uploading a single feature in the current folder fails #18

Open
jmezach opened this issue Apr 16, 2019 · 0 comments
Open

Uploading a single feature in the current folder fails #18

jmezach opened this issue Apr 16, 2019 · 0 comments

Comments

@jmezach
Copy link
Member

jmezach commented Apr 16, 2019

While trying to reproduce a different issue I ran into an issue with uploading a single feature file that is in the current folder. For example, using the following command will fail:

$ augurk publish --featureFiles "MyFeatureFile.feature" --productName "SomeProduct" --groupName "SomeGroup" --url "http://my-augurk-instance/"

This results in the following exception:

Starting publishing of feature files...
An exception occured while uploading feature file 'MyFeatureFile.feature
System.ArgumentException: Path cannot be the empty string or all whitespace.
Parameter name: path
   at System.IO.Directory.SetCurrentDirectory(String path)
   at Augurk.CommandLine.Commands.PublishCommand.ParseFeatureFile(String featureFile) in d:\a\1\s\src\Augurk.CommandLine\Commands\PublishCommand.cs:line 272
   at Augurk.CommandLine.Commands.PublishCommand.PublishFeatureFiles() in d:\a\1\s\src\Augurk.CommandLine\Commands\PublishCommand.cs:line 97

This looks to be related to this piece of code. We're trying to change the current directory to the directory of the feature file, but if the provided feature file is a relative path this will probably return null resulting in the exception.

Perhaps we should make all the feature files provided on the command line into absolute paths first, before running this logic. Will need to look into that.

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

1 participant