Browse files

[t/subcommands] added

The different test files (fetch, build, test, install-with-test,
install-with-force, install-skip-tests) all contain comments with tests that
should be added.
  • Loading branch information...
1 parent 9489334 commit d1123666b0c1954105a6b511166d21f2a2fd8d7c @masak committed Jun 12, 2010
View
18 t/subcommands/build.t
@@ -0,0 +1,18 @@
+use v6;
+use Test;
+
+# [T] Build a project: Succeed.
+
+# [T] Build an unfetched project: Fetch, build.
+
+# [T] Build an unfetched project; fetch fails. Fail.
+
+# [T] Build a project; a build error occurs: Fail.
+
+# [T] Build a project with dependencies: Build dependencies first.
+
+# [T] Build a project with circular dependencies: Fail.
+
+# [T] Build a project whose direct dependency fails: Fail.
+
+# [T] Build a project whose indirect dependency fails: Fail.
View
14 t/subcommands/fetch.t
@@ -0,0 +1,14 @@
+use v6;
+use Test;
+
+# [T] Fetch a project: Succeed.
+
+# [T] Fetch a project; an unexpected error occurs: Fail.
+
+# [T] Fetch a project with dependencies: Fetch dependencies too.
+
+# [T] Fetch a project with circular dependencies: Fail.
+
+# [T] Fetch a project whose direct dependency fails: Fail.
+
+# [T] Fetch a project whose indirect dependency fails: Fail.
View
24 t/subcommands/install-skip-tests.t
@@ -0,0 +1,24 @@
+use v6;
+use Test;
+
+# [T] Install-ST a tested project: Succeed.
+
+# [T] Install-ST an untested project: Don't test, install.
+
+# [T] Install-ST an unbuilt project: Build, don't test, install.
+
+# [T] Install-ST an unbuilt project; build fails. Fail.
+
+# [T] Install-ST an unfetched project: Fetch, build, don't test, install.
+
+# [T] Install-ST an unfetched project; fetch fails. Fail.
+
+# [T] Install-ST an unfetched project; build fails. Fail.
+
+# [T] Install-ST a project with dependencies: Install-ST dependencies too.
+
+# [T] Install-ST a project with circular dependencies: Fail.
+
+# [T] Install-ST a project whose direct dependency fails: Fail.
+
+# [T] Install-ST a project whose indirect dependency fails: Fail.
View
22 t/subcommands/install-with-force.t
@@ -0,0 +1,22 @@
+use v6;
+use Test;
+
+# [T] Force install an untested project; testing fails. Install anyway.
+
+# [T] Force install an unbuilt project; build fails. Fail.
+
+# [T] Force install an unbuilt project; testing fails. Install anyway.
+
+# [T] Force install an unfetched project; fetch fails. Fail.
+
+# [T] Force install an unfetched project; build fails. Fail.
+
+# [T] Force install an unfetched project; testing fails. Install anyway.
+
+# [T] Force install a project with dependencies: Install dependencies too.
+
+# [T] Force install a project with circular dependencies: Fail.
+
+# [T] Froce install a project whose direct dependency fails: Install anyway.
+
+# [T] Force install a project whose indirect dependency fails: Install anyway.
View
30 t/subcommands/install-with-test.t
@@ -0,0 +1,30 @@
+use v6;
+use Test;
+
+# [T] Install a tested project: Succeed.
+
+# [T] Install an untested project: Test, install.
+
+# [T] Install an untested project; testing fails. Fail.
+
+# [T] Install an unbuilt project: Build, test, install.
+
+# [T] Install an unbuilt project; build fails. Fail.
+
+# [T] Install an unbuilt project; testing fails. Fail.
+
+# [T] Install an unfetched project: Fetch, build, test, install.
+
+# [T] Install an unfetched project; fetch fails. Fail.
+
+# [T] Install an unfetched project; build fails. Fail.
+
+# [T] Install an unfetched project; testing fails. Fail.
+
+# [T] Install a project with dependencies: Install dependencies too.
+
+# [T] Install a project with circular dependencies: Fail.
+
+# [T] Install a project whose direct dependency fails: Fail.
+
+# [T] Install a project whose indirect dependency fails: Fail.
View
16 t/subcommands/test.t
@@ -0,0 +1,16 @@
+use v6;
+use Test;
+
+# [T] Test a project: Succeed.
+
+# [T] Test an unbuilt project: Build, test.
+
+# [T] Test an unbuilt project; build fails. Fail.
+
+# [T] Test an unfetched project: Fetch, build, test.
+
+# [T] Test an unfetched project; fetch fails. Fail.
+
+# [T] Test an unfetched project; build fails. Fail.
+
+# [T] Test a project whose tests fail: Fail.

0 comments on commit d112366

Please sign in to comment.