Replies: 3 comments
-
|
Can you just.scribble the main parts of the two files. I do not understand what mean with reqire publisher_create. Do you use @ref/ forceref? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Ok, pubseries.http: publisher.http |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Try changing it to |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure if my title is good, but bear with me.
I have set up some test files with some files calling tests in other files and I would like to be able to run all tests at once but also a single file.
An example:
I have a file called publishers.http which obviously tests publisher related stuff. One is publisher_create. The whole set does stuff like create a publisher, update it, test some errors and finally deletes the publisher.
I also have a pubseries.http which tests some series related stuff. This requires the use of publisher_create because series requires publisher id. File itself is similar but it also deletes the publisher as well because otherwise I would need to manually delete it if I run just this file.
But herein lies the problem. publisher_create is only run once even when I run all the files but publisher_delete is run twice. So one of the deletes causes an error.
I tried reading the docs but couldn't figure out how I could create a separate publisher in pubseries file, e.g. have it only scope that file.
So far the only solution I could come up with is a shell script that runs each file separately but that feels clunky.
P.S. If I could ask for a small feature: could the results in default mode (not JSON) also print the test name? I have close to 100 tests already and each file has 10-20 tests so when one fails it can be a bit hard to figure out which it was.
Beta Was this translation helpful? Give feedback.
All reactions