Skip to content

[WIP] Property tests for dependencies file parsing - #807

Merged
forki merged 10 commits into
fsprojects:masterfrom
theimowski:property_tests
May 21, 2015
Merged

[WIP] Property tests for dependencies file parsing#807
forki merged 10 commits into
fsprojects:masterfrom
theimowski:property_tests

Conversation

@theimowski

Copy link
Copy Markdown
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

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

forki commented May 3, 2015

Copy link
Copy Markdown
Member

ready to merge?

@theimowski

Copy link
Copy Markdown
Member Author

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

@theimowski

Copy link
Copy Markdown
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

forki commented May 21, 2015

Copy link
Copy Markdown
Member

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