Skip to content
This repository has been archived by the owner on Nov 20, 2018. It is now read-only.

A few functional/E2E tests that cover installation too #53

Merged
merged 1 commit into from
Mar 3, 2016

Conversation

victorhurdugaci
Copy link
Contributor

3 tests (1 disable) for dotnet watch + a mini scenario testing too.

@moozzyk maybe you want to use the scenario tester to test the iis integration tool too. It workarounds the fact that you have sources for the tool in the same repo.

Please review: @BrennanConroy @JunTaoLuo

@@ -200,7 +190,7 @@ private static string ResolveRootDirectory(string projectPath)

while (di.Parent != null)
{
var globalJsonPath = Path.Combine(di.FullName, "global.json");
var globalJsonPath = Path.Combine(di.FullName, "project.json");
Copy link
Member

Choose a reason for hiding this comment

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

Change variable name?

Copy link
Contributor

Choose a reason for hiding this comment

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

Actually the whole function should be renamed to ResolveProjectDirectory since we are only looking for the root of the project instead of the root of the solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@victorhurdugaci victorhurdugaci force-pushed the victorhu/tests branch 4 times, most recently from 27f2cbe to 7262063 Compare February 29, 2016 05:34
@victorhurdugaci
Copy link
Contributor Author

This test exercise became a big rewrite and I found and fixed a bunch of other bugs and limitations.
Most notably is that the watcher now watches files based on globbing patterns. I know there are a lot of changes but I would appreciate a review.

Full list of bug fixes:

@@ -14,7 +14,7 @@ public Project(ProjectModel.Project runtimeProject)
{
ProjectFile = runtimeProject.ProjectFilePath;
ProjectDirectory = runtimeProject.ProjectDirectory;

Copy link
Member

Choose a reason for hiding this comment

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

fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is that the best you can do? :trollface:

@victorhurdugaci
Copy link
Contributor Author

Unless there are more comments, I'm going to assume that this looks good and I'll merge it

{
FileName = fileName,
Arguments = arguments,
RedirectStandardOutput = true
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't you need to set UseShellExecute to false to enable this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

var childs = GetAllChildIdsUnix(process, timeout);
foreach (var childId in childs)
{
KillProcessUnix(childId, timeout);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do you kill the original process? Seems like you are only killing descendents of the original process.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch!

@victorhurdugaci
Copy link
Contributor Author

Updated

@JunTaoLuo
Copy link
Contributor

Looks good, :shipit: if the tests pass.

- File watcher that takes the globbing patterns into account
- A big rewrite of the core algorithm
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants