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 working in test directory #8

Open
agordeev opened this issue Aug 16, 2019 · 5 comments
Open

Not working in test directory #8

agordeev opened this issue Aug 16, 2019 · 5 comments

Comments

@agordeev
Copy link

Trying to run Fix imports command on my unit test file. Getting this error:

Current file is not on project root or not on lib folder? File must be on $root/lib. Your current file path is: '<path>/test/mocks' and the lib folder according to the pubspec.yaml file is '<path>/lib'.

@luanpotter
Copy link
Member

Probably we need to change it so it supports $root/test and well

@luanpotter
Copy link
Member

Actually now that I think about it test files must have absolute imports to src/ files right? or they don't work? At least on my test files I do that. Unless you mean importing a test/ file inside another?

Either way we should definitely not throw an error, either fix it or not.

@pvaibhav
Copy link

Any update on this issue?

@nilsreichardt
Copy link

Any updates?

@allanwolski
Copy link

Great package @luanpotter!

I need to work with the test directory too.

Any updates?

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

Successfully merging a pull request may close this issue.

5 participants