Skip to content

chore: update tests for nativescript-cli/pull/3744 #153

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

Merged
merged 1 commit into from
Jul 12, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions tests/build/android/build_android_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def test_001_build_android(self):
output = Tns.build_android(attributes={"--path": self.app_name, "--clean": ""})
after_build = datetime.datetime.now()
build_time = (after_build - before_build).total_seconds()
assert "Gradle build..." in output, "Gradle build not called."
assert output.count("Gradle build...") is 2, "Only one gradle build is triggered."
assert "Gradle clean..." in output, "Gradle clean is not called."
assert "Gradle build..." in output, "Gradle build is not called."
assert output.count("Gradle build...") is 1, "More than 1 gradle build is triggered."
assert build_time > 10, "Clean build takes less then 15 sec."
assert build_time < 90, "Clean build takes more than 90 sec."

Expand Down