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

Need unit tests of the core library #63

Open
lambdageek opened this issue Jul 27, 2021 · 0 comments
Open

Need unit tests of the core library #63

lambdageek opened this issue Jul 27, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lambdageek
Copy link
Member

It would be nice if we could write unit tests for just the core library so that we have an easy way to investigate problems in the core library without relying on the full integration tests that run the delta generator from within MSBuild.

One complication is that the library is written around using an MSBuildWorkspace for the baseline project. So even "unit" tests still need a pre-built baseline library as a starting point. But the library shouldn't mutate the on-disk baseline, so we can probably get away with a single baseline project that all the tests could use as a starting point.


At the moment the only way to really debug the library is by building the hotreload-delta-gen console tool and the example in src\hotreload-delta-gen\example and then running the tool by hand on the baseline example from within a C# debugger. But this is annoying because you have to specify the paths for the msbuild project, the delta script, etc by hand in the debugging configuration. It would be much nicer if we could debug unit tests.

@lambdageek lambdageek added the enhancement New feature or request label Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant