-
Notifications
You must be signed in to change notification settings - Fork 23
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
Problem with test dependency #297
Comments
I did a bit more testing and can confirm that there are a few issues with the VSCode extension's handling of the cancelled request. Scenario: there are 3 tests in an http file, the first of which should be cancelled, but the other two should run normally. Here is what happens:
I suspect this is an issue with the VSCode extension (and probably more than one). |
@alekdavisintel I introduced a bug with the last release. I underestimated the scope of the $cancel. Unfortunately, it survives the context and this causes subsequent problems. All testRuns after this run, will be interpreted as skipped.. I reverted the change with the commit. |
I have not tested CLI, yet, but from what I see in VSCode, it works fine if I run tests from the I do not know the difference between the test runs between the invocation of the |
Would you please test the new release? I would have added several optimizations here on how to deal with skipped and errors. This should solve your problem. |
I will do more extensive testing next week (assuming I still have a job, don't know if you followed the tech news), but a quick test looks nice, at least I see the correct icons upon the test run completion (when I run it from the Testing window). A really minor thing (and I'm not sure if it is intentional), but in the test results tree the order of tests seems wrong unless you meant to group cancelled tests at the end of the run intentionally. There seems to be a few issues when I run tests using the
If I run a single test using the green arrow on the left margin of the source file, I get the same error but the Test Results tab appears and I get the request log output. So something fishy is going on here, but execution from the Testing menu seems to work fine. I am only using the Many thanks for the improvements. P.S. Love the output that now goes into in the Test Results tab. Very helpful. |
@alekdavisintel I haven't heard the news yet. Stupid bullshit. I hope it turns out well for you. |
I tested the |
Is there a description of the codelens commands, like I did not get the point about the parsing error. Is this something on my end? It did not happen before the last release. And I do not use output redirection. Do you need more info? Not sure about the empty header values, since I do not mess with headers. Should I check something specific? |
Noticed one more thing after additional testing: if a test dependency fails to run for some reason the test that uses a dependency is always marked as successful in the tree (with the green checkbox) even if it does not run. E.g. test X depends on test A, and the OAuth settings are not configured correctly for test A, so test A is broken, even though test X does not run, it is marked as successful: You can see this in the repo I created: https://github.com/alekdavis/httpyac-extras |
That's right, I overlooked this case. I'll check the result now and add Skipped if necessary |
I am still trying to figure out what makes the response window close and then not appear and it looks like this only happens when I run a file or folder test (which has more than one requests) from the Testing view. Here is a demo (from my https://github.com/alekdavis/httpyac-extras repo): httpYac-ResponseTabIssue.mp4 |
I just noticed a weird issue. I have a number of CRUD tests with dependencies: get some values necessary for item creation, then check if the item with the same name already exists, if so, delete the item, then create the item, do a couple of gets, do a patch, another get, and finally delete. It seems to work fine, if I have a pending account that I need to clean up, but if there is no cleanup account, then I skip the cleanup deletion step and even though the rest of the tests execute as expected (based on the logs), the icons of all of the subsequent tests show as non-tried:
In my particular case, only the
Clean up existing non-employee acount
test must show as skipped. Other tests must show as either successful or failed (a couple of them failed). Here are the entries from the console log:The text was updated successfully, but these errors were encountered: