Skip to content

QTestDriver Implementation not working on WindowsΒ #292

@kreuzberger

Description

@kreuzberger

πŸ‘“ 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions