hitchdev / hitchstory

Type-safe YAML integration tests. Tests that write your docs. Tests that rewrite themselves.
https://hitchdev.com/hitchstory
Other
89 stars 3 forks source link

Getting FileNotFound errors when running example tests #10

Open KaneCoulton opened 10 months ago

KaneCoulton commented 10 months ago

Hi, I've recently discovered hitchstory and been trying to get the rewrite test_correct_my_spelling example working. The issue I'm currently seeing is that when running $ STORYMODE=rewrite ./run.sh pytest -k test_correct_my_spelling I'm getting the error No such file or directory: '/src/tests/docstory.yml.

I'm wondering if this is to do with the recent directory changes?

It appears a lot of the links on that example page are also broken as a result of the directoy changes.

Or is there something I'm doing wrong?

Thanks

crdoconnor commented 10 months ago

yes, it almost certainly is some changes I made recently to the examples. thank you for bringing it up I will try to fix it a bit later on today.

On Thu, 9 Nov 2023, 05:32 KaneCoulton, @.***> wrote:

Hi, I've recently discovered hitchstory and been trying to get the rewrite test_correct_my_spelling example working. The issue I'm currently seeing is that when running $ STORYMODE=rewrite ./run.sh pytest -k test_correct_my_spelling I'm getting the error No such file or directory: '/src/tests/docstory.yml.

I'm wondering if this is to do with the recent directory changes?

It appears a lot of the links on that example page are also broken as a result of the directoy changes.

Or is there something I'm doing wrong?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/hitchdev/hitchstory/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOJKNMRFYFBDQT2HEYPJFDYDRMEXAVCNFSM6AAAAAA7D52PAWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DIOBQGA2TIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

crdoconnor commented 10 months ago

which example were you using - website, command line or rest api?

On Thu, 9 Nov 2023, 08:58 Colm O'Connor, @.***> wrote:

yes, it almost certainly is some changes I made recently to the examples. thank you for bringing it up I will try to fix it a bit later on today.

On Thu, 9 Nov 2023, 05:32 KaneCoulton, @.***> wrote:

Hi, I've recently discovered hitchstory and been trying to get the rewrite test_correct_my_spelling example working. The issue I'm currently seeing is that when running $ STORYMODE=rewrite ./run.sh pytest -k test_correct_my_spelling I'm getting the error No such file or directory: '/src/tests/docstory.yml.

I'm wondering if this is to do with the recent directory changes?

It appears a lot of the links on that example page are also broken as a result of the directoy changes.

Or is there something I'm doing wrong?

Thanks

— Reply to this email directly, view it on GitHub https://github.com/hitchdev/hitchstory/issues/10, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABOJKNMRFYFBDQT2HEYPJFDYDRMEXAVCNFSM6AAAAAA7D52PAWVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DIOBQGA2TIMY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

KaneCoulton commented 10 months ago

website