httpyac not recognizing http-client.env.json files on WSL
See original GitHub issueI’ve run into an issue that only seems to happen on Windows Subsystem for Linux (WSL). Which is quite irritating and I’m hoping you could end my frustration 😃
I have a project set up where I have my project set up as follows:
.
├── Asserts
│ ├── Should_be_200_OK.js
│ └── Should_be_201.js
├── http-client.env.json
├── .httpyac.json
├── Integration.Tests.csproj
└── Tests
└── post-tests.http
When I run the command the command below on Linux or Mac it works as expected and is great
httpyac ./tests/Integration.Tests/Tests/* --all -e dev --json
or httpyac ./tests/Integration.Tests/Tests/* --all -e dev -o short
However, when it comes to Windows and even though I am using Windows Subsystem for Linux (ubuntu) the command fails
ReferenceError: host is not defined
which seems to indicate HttpYac can’t find the http-client.env.json
where all environment variables have been defined.
This only seems to happen on WSL though!
Feel free to check out the sample project https://github.com/Geek-I-Am/post-service
The really annoying things is when I run the tests in Rider on Windows they work as expected! So I know the tests work. and if I run the tests on any other OS using the HttpYac they work. It’s only Windows that is the issue.
Issue Analytics
- State:
- Created a year ago
- Comments:12 (6 by maintainers)
Top GitHub Comments
I’ll try the debugging option on Monday, try get as much information as I can.
@garywoodfine Thank you. You are welcome.