Skip to content
This repository has been archived by the owner on Dec 18, 2017. It is now read-only.

Run only the expected tests #3009

Closed
wants to merge 2 commits into from
Closed

Run only the expected tests #3009

wants to merge 2 commits into from

Conversation

dougbu
Copy link
Member

@dougbu dougbu commented Oct 18, 2015

  • do not use DnxTest() macro; it loops through frameworks as test-package target does already
    • DnxTest() also attempts to use default alias when testing dnxcore50 though it's in $env:Path
    • therefore execute dnx test directly

nit: use IsLinux where IsMono is the wrong question

@dougbu
Copy link
Member Author

dougbu commented Oct 18, 2015

/cc @moozzyk. I suggest this as an alternate to #2977. It stops the extra dnvm run default test executions and tests the new DNX Core on Windows.

However due to #3007, this won't actually test DNX Core on Linux.

@muratg
Copy link
Contributor

muratg commented Oct 19, 2015

Based on our chat, remember to remove .travis.yml from the PR.

@dougbu
Copy link
Member Author

dougbu commented Oct 19, 2015

@moozzyk could you have a look? I've rebased this branch and removed the test-only commit @muratg was talking about.

@moozzyk
Copy link
Contributor

moozzyk commented Oct 19, 2015

@dougbu - looking...
(btw. I just ran dnx with your change in the Universe and now my CoreClr tests are failing the build since they run with the default runtime and not the one that has changes. So, thanks for fixing this in Universe).

@dougbu
Copy link
Member Author

dougbu commented Oct 19, 2015

now my CoreClr tests are failing the build

Always glad to make failures visible 😈

}
else
{
// Skip Mono if we're not running on Linux.
Copy link
Contributor

Choose a reason for hiding this comment

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

How about Mac?

Copy link
Member Author

Choose a reason for hiding this comment

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

IsLinux is true on a Mac as well but I'll update the comment.

- do not use `DnxTest()` macro; it loops through frameworks as `test-package` target does already
  - `DnxTest()` also attempts to use `default` alias when testing `dnxcore50` though it's in `$env:Path`
  - therefore execute `dnx test` directly

nit: use `IsLinux` where `IsMono` is the wrong question
@dougbu
Copy link
Member Author

dougbu commented Oct 20, 2015

@moozzyk rebased and updated. Ready to 🚢 ?

@moozzyk
Copy link
Contributor

moozzyk commented Oct 20, 2015

LGTM . 🚢 🇮🇹

@dougbu dougbu closed this Oct 20, 2015
@dougbu dougbu deleted the dougbu/dnxcore.testing branch October 20, 2015 01:53
@dougbu
Copy link
Member Author

dougbu commented Oct 20, 2015

1eab366

@dougbu dougbu added this to the 1.0.0-rc1 milestone Oct 20, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants