Skip to content

Conversation

kgeilmann
Copy link
Contributor

Is your pull request related to a problem? Please describe.

Fixing the last test of #2104 and the PluginFactoryTest, which also fails on windows.

Describe the solution you have implemented
Ignore ResourceScannerTest#scanForResourcesPathSymlink on windows, because to make it run windows needs to be in developer mode, and the repo has to be cloned with actived symlinks.
The PluginFactory Test fails on windows, because the plugins (the real ones, not the test plugins) which get a file paramter, open the file directly during instantiation. On windows the test failed, because junit cannot delete the tmpDir due to open files. The change uses the EventPublisher to send events to the plugin, especially the TestRunFinished Event. During handling of TestRunFinished the plugins close the file and junit can successfully clean up afterwards.

Additional context
Add any other context or screenshots about the pull request here.

@coveralls
Copy link

coveralls commented Oct 6, 2020

Coverage Status

Coverage increased (+0.05%) to 86.531% when pulling 24cf36a on kgeilmann:fix_pluginfactorytest into 4799b7c on cucumber:main.

Copy link
Contributor

@aslakhellesoy aslakhellesoy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@mpkorstanje mpkorstanje changed the title Ignore ResourceScannerTest#scanForResourcesPathSymlink and fix PluginFactoryTest [Core] Fix platform dependent unit tests Oct 8, 2020
@mpkorstanje mpkorstanje merged commit a858b7d into cucumber:main Oct 8, 2020
@kgeilmann kgeilmann deleted the fix_pluginfactorytest branch October 8, 2020 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants