mozilla / frost

Unit testing framework for test driven security of AWS, GCP, Heroku and more.
https://mozilla.github.io/frost/
Mozilla Public License 2.0
104 stars 24 forks source link

pip install not working #401

Closed hwine closed 3 years ago

hwine commented 3 years ago

The docs currently say to "install frost from pypi", which doesn't work at this moment.

To Do:

ajvb commented 3 years ago

This is fixed, but you still will need to run frost test within a clone of the frost repo, as otherwise it can't find the path to test files.

hwine commented 3 years ago

will need to run frost test within a clone of the frost repo

@ajvb Is this technically true? E.g. do we, or do we want to, support the workflow of "once frost is installed, I just need to point it to the directory containing my tests". (that might be a phase 2 or 3 goal, or ruled out of scope)

ajvb commented 3 years ago

@hwine That is a good question and I'm not sure. It would be nice to support something like:

$ pip install frost
$ frost test -m "aws" --aws-profile my-aws-profile

but at the same time, this might mean that we'd have a very different flow between those that just want to run existing tests and those that want to write their own. As well, it would probably require a lot of finagling pytest to allow something like this to work.

hwine commented 3 years ago

I opened #411 as a separate ticket for that enhancement, and we can decide later.

I think pytest doesn't care -- assuming we can move all the "frost" configs (mostly conftest.py) into the "frost package", but that's work to discover.

ajvb commented 3 years ago

I opened #411 as a separate ticket for that enhancement, and we can decide later.

I think pytest doesn't care -- assuming we can move all the "frost" configs (mostly conftest.py) into the "frost package", but that's work to discover.

As we've discussed outside of this issue, this sounds great. #411 is currently slated for 0.6.0 and the getting started docs in the README point to the currently supported path. Closing this issue.