Commit graph

241 commits

Author SHA1 Message Date
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
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
Phil Hagelberg
96adcdccc5 Fix tests re: central snapshots. 2013-01-10 11:40:15 -08:00
Ryan Senior
f4c2b97bc6 changed leiningen/test to allow the call into the clojure.test report to
pass through the hook to  the original multimethod
2013-01-10 11:07:01 -06:00
Jean Niklas L'orange
6280b73da0 Enforce nREPL dependencies in :repl profile. Fixes #893.
Enforces a nREPL dependency and a clojure-complete dependency for the :repl
profile. Previously, the first found :repl profile from
`project.clj`-`profiles.clj`-default was returned and merged into the real
profile. Now all :repl profiles that are found are merged into the active
profile.

The dependencies are tagged with the ^:displace tag, and as such will be
discarded if a collision occurs.

The changes made `repl-profile-in-project` fail as it did not contain
`leiningen.core.project/empty-dependencies`, which has a :reduce tag in its
metadata for handling dependency merging. The dependency merger expands the
version to its url, hence the change to a url map.

Also removed a TODO from the file, fixed by 27fe39d.
2012-12-28 04:56:27 +01:00
Phil Hagelberg
f92f677eb7 Disable a test that requires Java 7. 2012-12-26 10:12:03 -08:00
Phil Hagelberg
b4cc0f9dba Rename :post-preview selector to :disabled. 2012-12-26 10:07:51 -08:00
Balint Erdi
e7295dcb8a Update tests to the new way of defining replacing repositories 2012-12-04 15:58:56 +01:00
Marshall T. Vandegrift
24ca286d54 Test :provided profile interpretation by the uberjar task. 2012-11-17 17:38:11 -05:00
Phil Hagelberg
624bf2ae88 Move AOT of :main into uberjar task. Remove :skip-aot. 2012-11-12 15:30:43 -08:00
Anthony Grimes
43a5af1356 Add a test for :only selector. 2012-10-20 18:03:16 -05:00
Justin Balthrop
9f37f53c5e move dependency and repository merging into meta-merge
This is accomplished with the :reduce metadata, which specifies the
reduce function to use when merging. This allows us to merge
dependencies and repositories deeply like other structures. Note that
dependencies are transformed into a map before they are merged and then
transformed back into a vector.

Also change the way that collections are merged. They used to be merged
by taking the right collection and prepending it to the left collection.
This behavior was needed for :*-paths in defproject, but it is not an
obvious default. Now, the default is to append the right collection, but
the :prepend metadata can be used to tell meta-merge to prepend instead.
By default, :source-paths, :resource-paths and :test-paths have :prepend
set to true.
2012-10-08 18:27:40 -07:00
Tobias Crawley
6998dd6929 Support subtask specific help via 'lein help task subtask'
The help task will first look for static help under
'leiningen/help/task-subtask', then for a function name 'help-subtask' in the
subtask's namespace, then a docstring on the subtask function. For the latter
two options, the arglists are also printed.
2012-10-05 14:37:58 -04:00
Phil Hagelberg
929b09c1ba Allow repl profile to be overridden from project.clj. Fixes #789. 2012-10-04 10:22:22 -07:00
Phil Hagelberg
b5dc41a682 Fix repl tests. 2012-10-04 09:26:14 -07:00
Jim Crossley
e770d5e649 Include namespace metadata in test-selector predicates, fixes #242
More specific metadata wins, e.g. deftest trumps its namespace.

Also tweaked the tests a bit so that actual/expected results are now
shown in the output.
2012-10-02 19:38:35 -04:00
Nelson Morris
d254dae544 Reduce output for dependency resolution
Showing every failed repo lookup is bad for users.
They see the failure and get confused.

Hook up a custom listener that has the following behavior:

1. success -> print out artifact name, size, and repository name
2. failure -> ignore unless it is the last repo, then print out failure
   message with artifact name.

Fixes #610.
2012-09-05 14:59:53 -05:00
Phil Hagelberg
5400be18a2 Fix pom and deploy tests. 2012-08-30 10:12:58 -07:00
Phil Hagelberg
22b427aca1 Fix some of the tests. 2012-08-29 19:50:53 -07:00
Phil Hagelberg
b4cc744efd Merge remote branch 'llasram/provided-profile' 2012-08-23 14:49:32 -07:00
Justin Balthrop
09e5f60684 remove unnecessary is inside of are expression 2012-08-23 13:17:20 -07:00
Marshall T. Vandegrift
f416ad9481 Implement Maven "provided" scope with :provided profile. 2012-08-23 14:33:42 -04:00
Phil Hagelberg
e25c9940dd Fix bugs in pom and repl tests. 2012-08-13 15:01:29 -07:00
Phil Hagelberg
ec0187d8e7 Use updated search index format and location. Lots of TODOs still. 2012-08-09 00:48:32 -07:00
Phil Hagelberg
e7dadcd7b9 Remove commented-out shell wrapper remainders. 2012-08-01 09:42:20 -07:00
Arlen Cuss
710849c3f5 Unmark :post-preview compile tests. 2012-07-06 23:20:47 +10:00
Arlen Cuss
e39397cbc5 Fix existing :post-preview tests for cleanup. 2012-07-06 23:13:57 +10:00
Phil Hagelberg
82d812eccb Fix pom tests to reflect sample project change. 2012-06-26 20:26:37 -07:00
Phil Hagelberg
b6f90ac49e Fix test for lein-newnew. 2012-06-24 22:06:07 -07:00
Phil Hagelberg
b7c6a63fd5 Qualify implicit ::test profile. Fixes #659 for real, hopefully. 2012-06-22 13:19:46 -07:00
Phil Hagelberg
2f2bd69b4d Fix tests for bootclasspath. 2012-06-14 16:26:22 -07:00
Phil Hagelberg
1be0c5edb9 Move task chaining to do task. Fixes #632. 2012-06-09 21:48:23 -07:00
Phil Hagelberg
3b7fda6b5f Work around bug in ordered maps.
https://github.com/flatland/ordered/issues/4
2012-05-30 20:56:09 -07:00
Phil Hagelberg
34eb0a5d22 Use https for clojars. 2012-05-28 13:46:14 -07:00
Nelson Morris
e2d2e681f8 Output correct groupId tag for exclusions in pom. Fixes #593 2012-05-26 00:14:30 -05:00
Nelson Morris
a047f6fa23 Enable pom tests 2012-05-26 00:14:25 -05:00
Phil Hagelberg
6ed63b0254 Remove support for :run-aliases. 2012-05-24 18:27:19 -07:00
Phil Hagelberg
27346f0f62 Fix install test. 2012-05-09 11:05:17 -07:00
Phil Hagelberg
08c1ce6973 Fix deps test to clean whole target dir. 2012-05-07 16:58:33 -07:00
Phil Hagelberg
2a6a4e4d00 Fix search test. 2012-05-07 11:37:41 -07:00
Phil Hagelberg
1561aa5233 Merge pull request #547 from hugoduncan/feature/decouple-init-project
Decouple init-project from l.c.project/read
2012-04-29 17:18:59 -07:00
Anthony Grimes
f9c093a35d Fix a test.
Apparently this test was 'fixed' before for broken code in lein newnew.
Pretty great, I'd say.
2012-04-29 19:12:21 -05:00
Hugo Duncan
ccd3f58465 Decouple init-project from l.c.project/read
Reading a project should be side affect free. init-project modifies the current
classloader (and possible installs a new context classloader), so should not be
part of leiningen.core.project/read.
2012-04-29 09:07:51 -04:00
Michael S. Klishin
fcf63f39c5 Translate most common javac options in Leiningen 1 format into the one used by Leiningen 2
We intentionally don't try to support every single Lein 1 option because there is no way
to do everything Ant javac task can do with JDK's javac API. And it's also not necessary
because many of those features are very opinionated at best.
2012-04-28 03:14:46 +04:00