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

Error: No pubspec.yaml file found in the current working directory. #27

Closed
epomatti opened this issue Sep 7, 2019 · 2 comments
Closed

Comments

@epomatti
Copy link
Contributor

epomatti commented Sep 7, 2019

I'm getting this error when running the command from the README.md file. I have Ubuntu 18.04.

Error: No pubspec.yaml file found in the current working directory.
Run this command from the root of your project. Test files must be called
*_test.dart and must reside in the package's 'test' directory (or one of its
subdirectories).

The command I'm running is:

sudo docker run --rm -it -v ${pwd}:/build cirrusci/flutter:stable flutter test

My current directory is the root of my project:

evandro@mypc:~/Projects/my_app$ ls
android  ios  pubspec.lock  README.md              test
build    lib  pubspec.yaml  my_app.iml
@epomatti
Copy link
Contributor Author

epomatti commented Sep 8, 2019

Solved it by adding --workdir /build in the command for the working directory inside the container.

Final command looks like this:

docker run --rm -it -v $PWD:/build --workdir /build cirrusci/flutter:stable flutter test

Since I copied this command from the README.md should we fix it there?

@epomatti
Copy link
Contributor Author

epomatti commented Sep 8, 2019

Created a pull request with new command

#28

Closing this issue.

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