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

Process api hook #2131

Merged
merged 16 commits into from
Oct 10, 2018
Merged

Process api hook #2131

merged 16 commits into from
Oct 10, 2018

Conversation

matthid
Copy link
Member

@matthid matthid commented Oct 8, 2018

Description

Use the new API in order to write unit-tests

src/app/Fake.DotNet.Testing.NUnit/NUnit3.fs Show resolved Hide resolved
let assemblies = assemblies |> Seq.toArray
let details = assemblies |> String.separated ", "
use __ = Trace.traceTask "NUnit" details
let p = createProcess setParams assemblies
Copy link
Contributor

Choose a reason for hiding this comment

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

could this not be

createProcess setParams assemblies
|> Proc.run

Copy link
Member Author

Choose a reason for hiding this comment

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

yes indeed

BlythMeister
BlythMeister previously approved these changes Oct 9, 2018
@@ -11,14 +11,15 @@ let fsCheckConfig = { FsCheckConfig.defaultConfig with maxTest = 1000 }
[<Tests>]
let tests =
testList "Fake.Core.Process.Tests" [
testPropertyWithConfig fsCheckConfig "toWindowsCommandLine is the inverse of fromWindowsCommandLine" <|
//Process.setEnableProcessTracing true
Copy link
Member Author

Choose a reason for hiding this comment

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

If this line is uncommented it completely breaks the "fake-context" for some reason and about the half (around 30) tests start to fail... Would be interesting to figure out why.
Note that not only tests in this file start failing but everywhere (especially the FakeVar and Context ones)

@matthid matthid merged commit e9b8834 into release/next Oct 10, 2018
@matthid matthid mentioned this pull request Oct 12, 2018
@matthid matthid deleted the process_api_hook branch November 10, 2018 23:52
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.

2 participants