leiningen/test
Alex Osborne 3f299cc560 Fix lein run first argument bugs.
There were three related problems:

1) The first argument was always parsed with read-string, even
   when defaulting to the :main namespace.  This caused
   non-numeric first arguments to throw:

   Exception in thread "main" java.lang.Exception: Unable to
   resolve symbol: foo in this context

   Avoid read-string entirely and update the unit tests to use an
   unreadable string instead of a number to make the problem obvious.

   This problem was reported by Marek Kubica on the Clojure
   mailing list.

2) When using an alias the alias keyword was passed to -main as the
   first argument.  This is inconsistent with how the -m and :main
   simply pass the program arguments, not the namespace or -m flag.

3) There was no way to pass "-m" or a string beginning with ":"
   as a first argument to the run program.  Added "--" as an option
   to escape these.
2010-12-24 23:41:23 +11:00
..
test_compile.clj Add a test for :skip-aot on :main. Fixes #145. 2010-12-13 22:56:10 -08:00
test_core.clj Fix tests to reflect sample project version change. 2010-12-09 12:46:33 -08:00
test_deps.clj Allow :dev-dependencies without :dependencies. 2010-10-31 13:41:28 -04:00
test_help.clj Test fixes. 2010-11-09 13:08:51 -08:00
test_install.clj Fix argument order for install & plugin install. 2010-12-11 11:27:14 -06:00
test_jar.clj Fix tests to reflect sample project version change. 2010-12-09 12:46:33 -08:00
test_javac.clj Fix a test that wasn't testing anything. 2010-12-09 22:01:08 -08:00
test_new.clj Don't shell out in tests; that's terrible. 2010-09-21 20:17:02 -07:00
test_plugin.clj Test plugin installation and create plugins dir where necessary. 2010-11-20 13:34:50 -06:00
test_pom.clj Don't allow release versions that depend upon snapshots. 2010-12-09 12:46:33 -08:00
test_run.clj Fix lein run first argument bugs. 2010-12-24 23:41:23 +11:00
test_test.clj Clean up after test runs. 2010-12-11 11:52:09 -06:00
test_uberjar.clj Add :uberjar-exclusions to project.clj. 2010-11-20 12:22:29 -08:00