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

[WIP] Property tests for dependencies file parsing #807

Merged
merged 10 commits into from
May 21, 2015

Conversation

theimowski
Copy link
Member

As per #802 the dependencies file caches all lines for later serializing, so this round-test may not be that useful, however it can surely serve as a safety net for future refactorings.

The test doesn't yet generate all valid dependencies files, but it could already find some pitfalls:

  • can have comment line starting with #,
    but can't have a hash-comment inline such as nuget FsCheck #fscheck is cool
  • can not have comments after: github, gist, http dependencies

Didn't fix those for now, instead made a workaround in generating test data

</ItemGroup>
<ItemGroup>
<Reference Include="mscorlib" />
<Reference Include="nunit.core">
Copy link
Member Author

Choose a reason for hiding this comment

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

had to add those manually - FsCheck.Nunit package does that through powershell

Copy link
Member

Choose a reason for hiding this comment

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

/cc @kurtschelfthout why is this in the powershell script?

Copy link
Contributor

Choose a reason for hiding this comment

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

On mobile now so don't have a good overview, but think that's wrong, should be reference/content or whatever the canonical way of doing it is. Would you mind opening an issue?

@forki
Copy link
Member

forki commented May 3, 2015

ready to merge?

@theimowski
Copy link
Member Author

Not yet, I'll do some improvements soon and let know when its ready

@theimowski
Copy link
Member Author

OK I think it can be merged for now - added a bit more possibilities to the generator, however still there are some "hardcoded" values.
Can be a good start when time comes for refactoring DependenciesFile parsing

@forki
Copy link
Member

forki commented May 21, 2015

thx

@forki forki merged commit 9327d17 into fsprojects:master May 21, 2015
@theimowski theimowski deleted the property_tests branch May 21, 2015 06:22
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.

3 participants