Commit graph

483 commits

Author SHA1 Message Date
Wayne
07c1c7a7f8 Enable simple aliasing in :deploy-repositories. 2014-05-26 19:00:35 -07:00
Chris Truter
6f620ad317 Use existing helper instead
1. Reorganise tests a bit so loading property still checked.
2. Add explicit exception if unexpected type to `collapse-function`
3. Unrelated addition of test to show leading `:` ignored in nested paths
2014-05-26 08:05:45 +02:00
Chris Truter
fc9884b5c4 Disable problematic but non-essential test
Failure must have something to do with namespace state that
changes between running tests in REPL and running the full suite.

Test is not an important property, so just commenting out.
2014-05-26 07:55:18 +02:00
Chris Truter
93e82887bf Aggressive resolve policy for lein.change functions 2014-05-26 07:55:18 +02:00
Max Barnash
8741938311 Fixed change task to work with newlines 2014-05-26 07:29:20 +04:00
Phil Hagelberg
e0640c21a6 Merge remote-tracking branch 'crisptrutski/set-group-or-artifact-id'
Conflicts:
	src/leiningen/change.clj
2014-05-25 17:45:36 -07:00
Phil Hagelberg
d8765c978c Merge remote-tracking branch 'crisptrutski/lein-release-and-change-interop'
Conflicts:
	src/leiningen/release.clj
	test/leiningen/test/release.clj
2014-05-25 17:12:12 -07:00
Phil Hagelberg
28eb8f02c5 Make bump-version work with strings and default to bound *level*. 2014-05-25 15:05:56 -07:00
Chris Truter
b99c207340 Fix things broken by late rename
Note to self:

Always unload namespaces and test again after renaming.
2014-05-25 16:28:02 +02:00
Chris Truter
08c3ad2587 Update leiningen.change tests to use real bump-version
Not sure what you think of creating this kind of coupling in the tests.

This were useful tests for driving the previous commits, but happy to
delete them now.
2014-05-25 16:11:29 +02:00
Chris Truter
c5bd294aa5 Reappropriate bump-version function for lein.change usability
One wart to notice is that argument order is switched between
`bump-version-map` and `bump-version`. This is because the `lein.change`
semantics enforce that version-string is the first argument.

Have not added tests for this function, do you think we should?
2014-05-25 16:09:48 +02:00
Chris Truter
16e283e14f Implement artifact/group-id editability 2014-05-25 14:54:33 +02:00
Chris Truter
a1e6fa6db9 Whitespace and test group merge 2014-05-25 14:54:06 +02:00
Chris Truter
64b8243d3a Update collapse-fn tests to illustrate argument order
Didn't like having a property that was so crucial ingored in the tests
2014-05-25 14:51:40 +02:00
Phil Hagelberg
405fa31483 Fix release tests. 2014-05-24 14:31:37 -07:00
Phil Hagelberg
045ba88342 Add special case for "set" arg in change task; fix change tests. 2014-05-24 14:22:33 -07:00
Phil Hagelberg
c83b2facfe WIP: merge change task and release. 2014-05-24 09:59:29 -07:00
Phil Hagelberg
80d4f130fc Merge branch 'release'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-05-24 09:24:24 -07:00
Chris Truter
055ee45918 Implement more features, simplify interface
Too much magic in those helper functions maybe?
2014-05-24 14:51:22 +02:00
Chris Truter
e41a4bc2a0 Add pending test for setting generic (nested) attributes 2014-05-24 14:51:21 +02:00
Chris Truter
947cc00e6c Attempt to make types transparent across sjacket boundary
Not sure how robust this is, but looks like a step towards less annoyance / surprise
2014-05-24 14:51:21 +02:00
Chris Truter
c071b8bd37 Improve interface for changing project settings 2014-05-24 04:57:26 +02:00
Chris Truter
cca167c19c Experiment with generic conventions
1. Look up functions based on "run-*" pattern
2. Support consistent argument passing scheme
3. Crude bump-version task
4. Some refactoring

Not great at structuring Clojure code, so open to tips to organise
this namespace better!
2014-05-24 04:12:46 +02:00
Chris Truter
fff11d4fcc Set project version via sjacket 2014-05-24 02:44:09 +02:00
Wayne
7cae821956 Fix up version parsing code.
Now with working tests!

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-19 22:17:42 -07:00
Wayne
63a90d6dc3 Fix version-map->string and associated test.
Adds a member to each testcase vector that represents the original version
string minus the quantifier, or just the original version string itself in the
case of the version string being an invalid maven version.

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 13:57:55 -07:00
Wayne
18cae29409 Add test for version-map->string
Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 11:01:08 -07:00
Wayne
d601b6140f Begin working on leiningen.release.
parse-maven-version is a modified copy of the same function found in
relaynetwork/lein-release. Also began working on unit tests.

Signed-off-by: Wayne <wayne@puppetlabs.com>
2014-05-16 11:01:08 -07:00
Phil Hagelberg
07a1ecaa93 Normalize :aot :all to :aot [:all].
This fixes type mismatch issues when merging profiles.

Fixes #1488.
2014-04-22 16:41:50 -07:00
Phil Hagelberg
f4b0bf6ec9 Fix weird de-duping behaviour in pom.
It used to be we would merge a bunch of profiles into the project, and
then trim out dupes based on group/artifact/version, which was totally
wrong; it ignores classifiers and extensions.
2014-04-22 16:24:10 -07:00
Phil Hagelberg
88181a4bbf Use dep-key for distinct call in pom task.
group/artifact version tuple isn't enough to de-dupe correctly.

Fixes #1494.
2014-04-22 15:03:34 -07:00
Jim Crossley
9d8b214ccc Include group in dedupe key to fix #1480 2014-04-15 17:29:14 -04:00
Phil Hagelberg
ed67d8093b Make Leiningen (more) Eastwood-friendly.
Still get a couple warnings... We don't really care about the
unlimited-use warnings from clojure.test, and there are a couple
warnings we get stemming from bugs/limitations in Eastwood.
2014-04-03 20:18:28 -07:00
Matthew Blair
65c3dd5766 Create new tests for use of --force option 2014-04-01 23:25:00 -04:00
Matthew Blair
f7c70fa2f0 Fix executable test - add force option since test is being run in system temp directory 2014-04-01 23:24:42 -04:00
Jean Niklas L'orange
a296ff8918 Bump all Clojure 1.5.1 deps to 1.6.0. 2014-03-26 13:43:38 +01:00
Jean Niklas L'orange
84af9246cf Do not depend on map ordering in tests. 2014-03-26 13:43:38 +01:00
Phil Hagelberg
6cdc043e9a Adapt template template so that the #1409 fix doesn't break new templates. 2014-03-17 15:30:40 -07:00
Phil Hagelberg
ae91367b78 Tell Bultitude not to ignore unreadable namespaces in test/check.
Fixes #1409.
2014-03-17 15:21:19 -07:00
Phil Hagelberg
e8da286ea7 Failing test for #1409. 2014-03-17 14:25:44 -07:00
Phil Hagelberg
a6bebc9459 Merge pull request #1470 from fredericksgary/issue-1469
lein run: don't catch app errors as require errors
2014-03-13 20:06:17 -07:00
Gary Fredericks
b19b305d58 Slightly more homogeneous test project names 2014-03-13 20:24:42 -05:00
Gary Fredericks
cc886d56a3 lein run: don't catch app errors as require errors
closes #1469

`lein run` currently has some special error handling around
FileNotFoundException which helps it decide what exactly it should
do. Unfortunately if the actual running of the given main function
itself throws a FileNotFoundException this is currently caught by
Leiningen and assumed to be a require error.

The simple solution is to run the main method outside of that error
handling block.

Regression test provided.
2014-03-13 20:17:59 -05:00
Phil Hagelberg
1b39bc5b27 Make repl tests resilient to having .nrepl-port file in pwd. 2014-03-06 13:34:20 -08:00
Craig McDaniel
a5cf442cf3 Support for overriding :clean-targets sanity checking (issue #1458).
Also made unit tests safer and faster using with-redefs to mock out
calls to delete-file-recursively.
Better error messages when a path is being protected.
2014-03-03 21:35:03 -05:00
Craig McDaniel
9c84a5e2e0 Removed (run-tests) call that was being used for interactive REPL testing 2014-03-01 12:37:16 -05:00
Craig McDaniel
b19b80390c Fix for #1458: clean-targets sanity checks. 2014-03-01 12:35:32 -05:00
Craig McDaniel
ba6e88200b Partial implementation of fix for :clean-targets sanity checking (issue #1458) 2014-02-28 08:26:36 -05:00
Craig McDaniel
c87cb003a2 Initial happy-path unit tests for the clean task. Relates to #1458 2014-02-25 22:13:13 -05:00
Jean Niklas L'orange
a5d2ea5161 Allow non-string args to compile task. Fixes #1442 2014-02-22 15:24:40 +01:00
Marshall Bockrath-Vandegrift
a38f3903cf Also expand the built-in default profiles. 2014-01-28 06:20:10 -05:00
Jean Niklas L'orange
ecb7ed0e77 Decompose with-profile args not containing +/-. 2014-01-27 16:31:34 +01:00
Marshall Bockrath-Vandegrift
8bd6b8fb53 Fix #1421 by decomposing profiles into collections of atomic profiles. 2014-01-27 15:54:05 +01:00
Phil Hagelberg
04133b573a Accept both orderings of args in :show subtask of new. 2013-11-18 20:08:09 -08:00
Phil Hagelberg
a45e8a5b0f Move parse-options test, fix typo. 2013-11-16 14:43:59 -08:00
Phil Hagelberg
1f7886c8bb Move parse-options into leiningen.core.main for general use.
Also remove support for single-dashed args.
2013-11-16 14:43:59 -08:00
Travis Vachon
1926f12e48 Refactor lein new argument parsing
It was a bit janky and hard to extend. This is maybe still janky, but
very extensible. Win?

We can now easily add new options to this command. I took some pains to
maintain backwards compatibility, even with the undocumented ability to
pass arguments on to templates. The full extent of this syntax isn't
documented in the docstring yet, but I'll expand that once we support
options that expose its darker corners.
2013-11-16 14:43:59 -08:00
Jean Niklas L'orange
ae2e789b04 Support nested do chains, remove implicit help.
Also provide an example in the sample project. Closes #1359.
2013-10-30 00:40:44 +01:00
Toby Crawley
3e865aedf2 Account for repl urls with paths [fixes #1344, again] 2013-10-17 00:06:40 -04:00
Toby Crawley
9f41ea9154 Fix 'repl :connect <port>' when used outside of a project [fixes #1344]
connect-string now verifies that the string ends with a port after the
string is fully formed, aborting if no port is found. This also
includes improvements to the repl help text, and more test coverage
for connect-string.
2013-10-10 11:50:44 -04:00
Phil Hagelberg
7b3ff4e570 Add a test for gpg keys and ssl cert expiry. 2013-10-05 15:29:16 -07:00
Marshall Bockrath-Vandegrift
39e3d57ec9 Implement :uberjar-merge-with requested in issue #973. 2013-10-05 13:56:57 -04:00
Jim Crossley
360fab0fe7 Abort with a nicer message when neither port nor .nrepl-port is provided 2013-10-02 11:05:16 -04:00
Jim Crossley
bd008f800e Fallback to .nrepl-port for 'repl :connect' subtask 2013-10-01 15:18:25 -04:00
Jean Niklas L'orange
ab7f332797 Merge in better error messages for -m in lein run. 2013-09-29 20:07:49 +02:00
Jean Niklas L'orange
f39b4b7c38 More descriptive error message for nonexistant ns.
Closes #1257.
2013-09-29 20:02:17 +02:00
Jean Niklas L'orange
10adf535d3 Better error message for bad -m args. 2013-09-29 18:57:52 +02:00
Jean Niklas L'orange
c86a69333e Don't add alias-help as public API in lein.help.
Also add in a couple of tests to ensure that aliases print docstrings.
2013-09-07 03:01:06 +02:00
Jean Niklas L'orange
89f06a49aa Add in a :plugin-tree test. 2013-08-29 15:21:08 +02:00
Jean Niklas L'orange
400d782272 Reenable java main run test.
Also more changes from use to require.
2013-08-24 17:36:21 +02:00
Jean Niklas L'orange
d00670f27f Delete subdir directory. 2013-08-24 17:12:15 +02:00
Jean Niklas L'orange
ab9271bcef Go from use->require. 2013-08-24 16:56:43 +02:00
Jean Niklas L'orange
cbd9e6b1cb Clean up helper docstrings. 2013-08-24 16:56:29 +02:00
Vadim Platonov
5b97d9a472 fix(jar): Add directory entries to the jar file
According to the [jar file specification](http://docs.oracle.com/javase/7/docs/technotes/guides/jar/jar.html)

> For resource files with non-empty directory prefixes, mappings are also
> recorded at the directory level.  Only for classes with null package
> name, and resource files which reside in the root directory, will the
> mapping be recorded at the individual file level.

If needed, directory entries may be excluded using `:jar-exclusions`
regex like `#"^.*/$"`.
2013-08-21 14:30:10 +03:00
Phil Hagelberg
95bdc72f80 Add :exclusions to :base deps to avoid version conflict warnings. 2013-08-17 21:10:58 -07:00
Phil Hagelberg
d12e7b1343 Fix pom tests. 2013-08-08 14:30:13 -07:00
Gary Fredericks
08eaf70781 #1269: Skip tests differently when using :test-selectors
The old method skipped tests by adding a hook to
clojure.test/test-var, the problem being that :each fixtures
associated with the test have already run at that point, which is
unideal.

This change skips test by removing their :test metadata before running
the tests at all, which causes clojure.test to not see it as a test.

We use ns-interns to enumerate the vars, the same way clojure.test
does.
2013-07-31 23:29:19 -05:00
Wolodja Wentland
83c136daa1 Add LICENSE file to project templates
Projects created by "lein new" are meant to be licensed under the EPL as noted
in project.clj and README.md. One requirement of the EPL is, however, that "a
copy of this Agreement [the EPL] must be included with each copy of the
Program." [0].

This means that projects created by leiningen cannot be legally distributed if
the author fails to add the LICENSE him/herself. This patch fixes this issue
by creating a LICENSE file with a plain text copy of the EPL 1.0 (cf. [0]) by
default for new projects.

[0] http://www.eclipse.org/legal/epl-v10.html → 3. REQUIREMENTS
2013-07-30 15:07:44 +01:00
Jean Niklas L'orange
2d8d5b39a6 Revert uberjar test back to std. name, ref #1260. 2013-07-26 09:17:35 +02:00
Jean Niklas L'orange
ae161bac8a "Fix" uberjar test, and make jar defn private.
Ref #1260, all uberjars generated without any specific profile
additions/deletions are now put in the folder `target/uberjar+provided`.
That's not intentional, right?
2013-07-25 10:37:58 +02:00
Phil Hagelberg
962ce20ae9 Scope :compile-path and :native-path under :target-path. 2013-07-24 20:55:23 -07:00
Phil Hagelberg
4feade3f7b Fix wonky newlines. 2013-07-24 19:21:23 -07:00
Jean Niklas L'orange
c3aa8d51be Add resources dir to app template, ref #1016. 2013-07-10 12:21:49 +02:00
Phil Hagelberg
a41c7e4bd0 Merge pull request #1223 from kanej/hostreplarg
Add :host as an option to 'lein repl :start' and 'lein repl :headless' commands
2013-06-14 12:36:42 -07:00
John Kane
6cabea9be8 Add Host as arg to "repl :start" and "repl :headless" commands.
This is a step towards easier setting up of remote nrepl
sessions, see issue #1217.
2013-06-11 00:39:10 +01:00
Leon Barrett
2d5e1b04de Fixed long line support in make-manifest. 2013-06-10 16:08:00 -07:00
Gary Fredericks
61091d44c3 Crash on :aot [does.not.exist]; also regression test; Fixes #1205
We want missing namespaces in :aot to not be silently ignored.
Implemented by removing the file-existence check from the function
that determines which namespaces need to be compiled.

This means we won't get the error if you compile an existing namespace
and subsequently delete the *.clj file. Oh well.
2013-06-04 16:39:58 -05:00
Leon Barrett
38090775f8 Fix a bug where the manifest is missing its last line.
Despite the documentation on java.util.jar.Manifest [1], the Manifest class
seems to require an endline in its input. If not, it drops the last line (on my
system, version [2], anyway).

[1] http://docs.oracle.com/javase/6/docs/technotes/guides/jar/jar.html
[2] $ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (7u21-2.3.9-0ubuntu0.12.04.1)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)
2013-05-31 10:51:51 -07:00
Colin Jones
3118083d44 Add custom-help to reply-options expectation 2013-05-27 22:20:51 -05:00
Gary Fredericks
71e609c8a1 Don't try static methods on lein run: better error msg
lein run tries to support invoking static methods on classes by
swallowing FileNotFoundExceptions when requiring the namespace to run,
which can obscure the real error when there's a real issue loading a
namespace.

Phil said he wasn't interested in keeping the (undocumented) feature
around, so the easiest fix to the error message problem was to remove
that feature.

Added a test as well.
2013-05-22 17:32:23 -05:00
AtKaaZ
533f4725db fix repo name should not contain path delims under windows so test won't
fail
all tests pass under windows
2013-05-16 05:32:38 +03:00
AtKaaZ
718cfc3f4c oops still forgot some parens on their own line 2013-05-15 06:34:40 +03:00
AtKaaZ
5b1b097c64 fix 2 test failures which only showed on windows 2013-05-15 06:16:47 +03:00
AtKaaZ
3521a21a9d moving 2 functions from utils to helper
merged all commits to date which required adding "dev-resources" so a
test wouldn't fail
`bin\lein test` tested under windows (currently 2 failures and 1 error)
2013-05-15 02:39:23 +03:00
AtKaaZ
6c34ce7e6f Merge branch 'master' into testsUnderWindows1 2013-05-15 01:53:44 +03:00
Phil Hagelberg
f40da67ece Make profile-scope-target-path work with anonymous profiles.
Also make it work in scenarios where the project map lacks :target-path.
2013-05-14 13:42:41 -07:00
AtKaaZ
a8e20e96ce fix some path errors in windows tests
lein test still has 2 failures and 1 error after this.
normalize-path should now handle absolute *nix paths correctly under
windows
addresses #1176
2013-05-13 08:15:55 +03:00
Colin Jones
b4660d52db Bump nrepl & clojure-complete dependencies 2013-05-12 15:19:07 -05:00
AtKaaZ
eb30389ff8 two strings were one for windows x86_64 test 2013-05-12 20:41:24 +03:00
Phil Hagelberg
9663106e84 Work around completely bonkers test failure.
Running deps on a project that includes ring causes an error
extracting the zip file for native deps, but only when you do it from
the first test in deps.clj and even then only when doing a full test
run.
2013-05-09 09:51:38 -07:00
Phil Hagelberg
01dd252b8a Fix a bunch of tests from reorg-repl. 2013-05-02 14:12:58 -07:00
Phil Hagelberg
02f1d5dc82 Merge branch 'reorg-repl'
Conflicts:
	leiningen-core/src/leiningen/core/main.clj
	leiningen-core/src/leiningen/core/project.clj
	src/leiningen/repl.clj
2013-05-02 13:13:55 -07:00
Colin Jones
4fe1b3df09 Update offline test metadata & run configuration 2013-04-27 12:15:24 -05:00
Colin Jones
9164c197d7 Don't bother trying to save the same source files 2013-04-27 12:15:24 -05:00
Joe Littlejohn
c78c7f7165 Add support for executable files to lein new templates
Paths that are marked with the additional option `:executable true`
will be set executable when template files are rendered.

Fixes #976.
2013-04-16 22:09:19 +01:00
Marko Topolnik
277b25b698 Adapt tests to code change 2013-04-11 10:13:23 +02:00
Marko Topolnik
fa95200da0 Don't explicitly check user profile in repl task
it should have already been merged
2013-04-10 14:54:29 +02:00
Marko Topolnik
3f4e64f888 Support :ack-port config option 2013-04-05 12:21:51 +02:00
Marko Topolnik
4280f2bb1f update-in: use resolve-and-apply (honor aliases) 2013-04-03 16:32:22 +02:00
Marko Topolnik
cd906e6bf0 update-in: vary meta project :without-profiles 2013-04-03 15:06:38 +02:00
Marko Topolnik
d2fccebb04 Formatting in test code 2013-03-29 14:09:21 +01:00
Marko Topolnik
de673e44d4 Test options-for-reply 2013-03-29 14:05:37 +01:00
Marko Topolnik
dfac3ce369 Tests for repl 2013-03-27 16:52:58 +01:00
Jean Niklas L'orange
dba0815138 Add guard rails for lein new newline handling. 2013-03-26 03:05:11 +01:00
Colin Jones
8bf417a0d0 Make slurp-resource 2.0.0-compatible again
closes #1102
2013-03-25 17:31:17 -05:00
Phil Hagelberg
4a5032f111 Reorganize most of repl.clj. 2013-03-24 15:40:08 -07:00
Phil Hagelberg
9043e3b5c7 Fix repl test. 2013-03-24 14:19:33 -07:00
Joshua P. Tilles
437e63daab Adjust compile task to make use of regex fns
Also update documentation.
2013-03-19 16:12:08 -07:00
Phil Hagelberg
ededa95c2d Merge remote-tracking branch 'marcliberatore/natives-update-java-library-path' 2013-03-19 14:25:48 -07:00
Marc Liberatore
d9e943e519 fix error in test introduced in 43581e2 2013-03-19 16:07:06 -04:00
Phil Hagelberg
4f4e66e01b Tag tests which require network access. 2013-03-19 10:24:56 -07:00
Phil Hagelberg
b8a6a090fe Remove outdated link to GitHub downloads page. 2013-03-19 10:24:56 -07:00
Tim McCormack
d14f5149f1 #949 Allow specification of artifact signing key.
Add :signing {:gpg-key "..."} option to project maps (global value)
and to :deploy-repositories maps (per-repo value). Does not yet work
in :repositories specs.

Also:
* Document per-repo :sign-releases option
* Delete unused defn deploy/signature-for
2013-03-19 10:24:56 -07:00
Phil Hagelberg
0e132292b7 Merge remote-tracking branch 'hyPiRion/read-nonblocking'
Conflicts:
	src/leiningen/deploy.clj
2013-03-17 08:05:11 -07:00
Jean Niklas L'orange
e42e44911d Add expected :input-stream in repl test. 2013-03-16 23:47:31 +01:00
Phil Hagelberg
41df82ba5c Fix repl test. 2013-03-14 21:15:26 -07:00
Colin Jones
50dd466255 Specify :root in repl test so the stub works 2013-03-14 10:47:28 -05:00
Michael Klishin
1e32278061 Add tests for #1017 2013-02-23 23:09:51 +04:00
Gabriel Horner
3c8b95d5b6 add resources dir to default new template, close #1016 2013-02-21 22:07:41 -05:00
Phil Hagelberg
52ae933cfa Fix tests to no longer look for shouty output prefix. 2013-02-21 13:35:21 -08:00
Phil Hagelberg
3b3573b47b Revert "Logging warnings to stderr and editing for consistency"
This reverts commit 4f05a44a0e.

Conflicts:
	leiningen-core/src/leiningen/core/project.clj
	src/leiningen/deploy.clj
	src/leiningen/test.clj
	src/leiningen/with_profile.clj
2013-02-21 13:29:48 -08:00
Phil Hagelberg
cc4045b932 Merge remote-tracking branch 'hugoduncan/feature/fix-recursive-alias-993'
Conflicts:
	leiningen-core/test/leiningen/core/test/project.clj
2013-02-21 12:04:19 -08:00
Gabriel Horner
2a9b50de5b fix tests broken by change in error format 2013-02-19 08:12:13 -05:00
Jean Niklas L'orange
6aed6d377f Resolve failing test introduced by *warn*.
Also move abort-msg up to leiningen core and call it from the leiningen
test helpers package instead.
2013-02-18 00:07:53 +01:00
Jean Niklas L'orange
55dd6b3fd4 Replace main ns with log where forgotten. 2013-02-17 23:39:40 +01:00
Gabriel Horner
c395092d8f new task generates in current directory by default, close #989 2013-02-15 16:15:56 -08:00
Gabriel Horner
95eeba2f1a add new task tests for other templates, fail case and :show 2013-02-15 16:15:55 -08:00
Gabriel Horner
0e025421d6 documenting and testing --to-dir option for new task 2013-02-15 16:15:55 -08:00
Gabriel Horner
efb62f7f84 remove failing report test that is no longer valid
removed at dfb951f430
2013-02-11 22:30:20 -05:00
Gabriel Horner
5cc3aa874b allow lein test to take file args
closes #996
2013-02-11 22:16:22 -05:00
Gabriel Horner
2e349c61e3 test for test command aborting on invalid namespace
move abort-msg to helper and ensure it only catches main/abort
2013-02-11 22:16:22 -05:00
Gabriel Horner
d5ec46e871 add missing tests for common test command invocations 2013-02-11 22:16:22 -05:00
Hugo Duncan
c418aee68b Allow building of jars with classifiers
Adds a :classifiers project key that takes a map from classifier keyword to
profile map.

    :classifiers {:tests {:source-paths ^:replace ["test"]
                          :resource-paths ^:replace []}}
2013-02-10 22:14:52 -08:00
Phil Hagelberg
6d7a77d547 Update tests to remove :custom-init. 2013-02-10 21:52:08 -08:00
Marko Topolnik
4c5185f33a Remove obsoleted tests 2013-02-10 21:45:13 -08:00
Marko Topolnik
2d120ac925 Adapt repl tests 2013-02-10 21:45:12 -08:00
Hugo Duncan
551479fc5a Fix stack overflow on with-profile self-aliases
An alias such as {"doc" ["with-profile" "+doc" "doc"]} was leading to a stack
overflow when executed.

This was due to the project being reload when with-profile calls set-profiles,
thus re-instating the aliases that have been removed by remove-alias.
2013-02-08 22:56:42 -05:00
Gabriel Horner
f477ffa7da add tests for helpful renderer msgs, handle no args case 2013-01-30 06:31:14 -05:00
Tim McCormack
45a5901d69 Remove some unnecessary regular expressions from the templates util ns.
Also:

* Add tests for string-munging fns
* Correct doc for name-to-path
2013-01-18 22:09:17 -05:00
Phil Hagelberg
54806fa5bc Fix newnew test 2013-01-10 16:45:09 -08:00