Skip to content
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

QTestDriver Implementation not working on Windows #292

Closed
kreuzberger opened this issue Apr 8, 2024 · 1 comment · Fixed by #305 · May be fixed by #293
Closed

QTestDriver Implementation not working on Windows #292

kreuzberger opened this issue Apr 8, 2024 · 1 comment · Fixed by #305 · May be fixed by #293
Labels

Comments

@kreuzberger
Copy link
Contributor

kreuzberger commented Apr 8, 2024

👓 What did you see?

Using the provided QTestDriver Implementation for windows gives errors

Unable to open file for logging: %TEMP%/test_module_runner.XNlhxg

The filename test_module_runner comes from the executable name.

✅ What did you expect to see?

The file should be created and used for QTest logging.

📦 Which tool/library version are you using?

cucumber-cpp v0.7.0

🔬 How could we reproduce it?

run QTestDriver test

📚 Any additional context?

This fails cause the QTemporary File created in the QTestDriver implementation is not going ouf of scope and therefore exists and is opened by cucumber-cpp. qTestExec could not write to this file and give the above error from Qt Internals.

The Temporary file name should created another way or the QTemporary File must go out of scope to let windows access the file resource.

@kreuzberger
Copy link
Contributor Author

Seems on windows the tests are not executed like for linux. Maybe add simple ctest call in the build script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants