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

Updated docs, added trivial tests #11

Merged
merged 3 commits into from
Mar 20, 2018
Merged

Updated docs, added trivial tests #11

merged 3 commits into from
Mar 20, 2018

Conversation

kevmoo
Copy link
Member

@kevmoo kevmoo commented Mar 20, 2018

No description provided.

@kevmoo kevmoo requested review from nshahan and natebosch March 20, 2018 16:25
@@ -12,5 +12,10 @@ dependencies:
io: ^0.3.2+1
stack_trace: ^1.9.2

dev_dependencies:
test: ^0.12.0
test_descriptor: ^1.0.0
Copy link
Contributor

Choose a reason for hiding this comment

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

Where is test_descriptor used?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh! Not yet...good catch...

echo -e '\033[1mTASK: test\033[22m'
echo -e 'pub run test'
pub run test || EXIT_CODE=$?
;;
*) echo -e "\033[31mNot expecting TASK '${TASK}'. Error!\033[0m"
EXIT_CODE=1
;;
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this our recommended approach to travis testing now? What happened to the days of just adding a few lines in the travis.yaml?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is using mono_repo – let's us test multiple packages in one repo easily...

@kevmoo
Copy link
Member Author

kevmoo commented Mar 20, 2018

PTAL

Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

One more question, then LGTM.


test('should fail in a package without a build_runner dependency', () async {
var process = await TestProcess.start('dart', ['bin/webdev.dart', 'serve']);
await process.shouldExit(255);
Copy link
Contributor

Choose a reason for hiding this comment

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

Are we expecting anything other than a failure yet?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is running against itself – so no build_runner dep or anything. We expect it to always fail.

...although in the future it should fail with a more helpful message and a different error code

@kevmoo kevmoo merged commit 8e92687 into master Mar 20, 2018
@kevmoo kevmoo deleted the fixes branch March 20, 2018 17:26
@@ -0,0 +1,39 @@
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
Copy link
Member

Choose a reason for hiding this comment

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

2018

@kevmoo
Copy link
Member Author

kevmoo commented Mar 20, 2018 via email

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