-
Notifications
You must be signed in to change notification settings - Fork 585
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
Add Xdt module to FAKE 5 #2218
Add Xdt module to FAKE 5 #2218
Conversation
fed0424
to
ec7d60a
Compare
@matthid any idea why tests are failing? Paket updated a bunch of dependencies, but I wasn't sure how to not touch them without editing the paket.lock by hand. |
@panesofglass yes this error happens when the runner has a different version of paket.core than the rest of the packages. Make sure all |
Thanks, @MattiD. |
@matthid looks like only CircleCI failed this time. |
looks related to this PR. |
@matthid parallel tests, perhaps? |
Yes by default stuff runs parallel and I feel like unit tests should work when run in parallel ;). If for some strong reason they need to run sequential there is a sequentialTests function in expecto. |
Thanks, @matthid. Looks like that fixed it. |
|
||
[<Tests>] | ||
let tests = | ||
testSequenced <| testList "Fake.DotNet.Xdt.Tests" [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it possible to just copy the test-files or create unique names to remove the need to have them running sequentially?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not entirely sure what you mean. Can you give an example? I copied the tests that were provided for the old XDTHelper
and converted them to use Expecto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One challenge for two of the functions is that they modify a file in-place, so I'm not sure how to resolve that without adding another dependency like a virtual file system.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couldn't we just copy the file in the test? Afaik read access can be shared, just writing is problematic...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy to make the change, but I'm not sure what exactly to do here. Do you have a specific suggestion?
Release 5.11
4ecf86f
to
501d8ba
Compare
Release 5.11.1
@matthid, does my last commit address your concerns? |
8984924
to
cbcb030
Compare
cbcb030
to
47c390d
Compare
@matthid, would you mind re-running the AppVeyor build? The failure looks like a build server error. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@matthid, does my last commit address your concerns?
Almost, I'd try to change it to use temporary file-names OR make each test use it's own directory. I can change that myself but it will take a couple of days.
Anyway, thanks a lot for taking care of this module.
src/app/Fake.DotNet.Xdt/Xdt.fs
Outdated
let private xdtTag = KnownTags.Task "XDT" | ||
|
||
/// Integrates XDT logging into FAKE logging. | ||
type FakeXmlTransformationLogger() = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can/should we make that internal?
@matthid any chance you can merge this? It's blocking us from using FAKE 5 on our web projects. |
Yes sorry, I just wanted to make |
@matthid, so long as change to making FakeXmlTransformationLogger internal doesn't break the build, I think this should be good. Thanks for your feedback! |
@panesofglass please see/review my changes in 570e10b |
Again thanks! Sorry for the delay. |
Description
Migrate
Fake.XDTHelper
to FAKE 5 moduleFake.DotNet.Xdt
.TODO
Feel free to open the PR and ask for help
New (API-)documentation for new features exist (Note: API-docs are enough, additional docs are in
help/markdown
)unit or integration test exists (or short reasoning why it doesn't make sense)
boy scout rule: "leave the code behind in a better state than you found it" (fix warnings, obsolete members or code-style in the places you worked in)
(if new module) the module has been linked from the "Modules" menu, edit
help/templates/template.cshtml
, linking to the API-reference is fine.(if new module) the module is in the correct namespace
(if new module) the module is added to Fake.sln (
dotnet sln Fake.sln add src/app/Fake.*/Fake.*.fsproj
)Fake 5 API guideline is honored