Commit Graph

186 Commits

Author SHA1 Message Date
Ryan Culpepper
61748bc7fa add check for check-exn predicate
closes PR 14165

original commit: 9b88a732ebebfdcb2229b79c1b5249295ff85c43
2013-11-17 18:17:54 -05:00
David T. Pierson
f8b0732caf rackunit: make check-exn/check-not-exn raise error if given a non-thunk
Previously, (check-exn exn? 'foo) would pass even though 'foo is not a
thunk.  Now it raises an exn:fail:contract? exception.

Previously, (check-not-exn 'foo) would produce a check failure.  Now it
raises an exn:fail:contract? exception.

original commit: bea7c852d773e442212528fafaccd6206df903b6
2013-11-07 13:36:22 -05:00
Eric Dobson
9083e022e4 Make rackunit print less extraneous newlines.
original commit: 0618b6e695823d19f115e70a8b4bd246782cdb1b
2013-10-29 20:25:00 -07:00
Eric Dobson
91f9befe34 Make rackunit not print a full stack trace in text-ui.
original commit: 30cecabb88b012b9bc6fabe9b3240f63c8cede79
2013-10-29 20:25:00 -07:00
Ryan Culpepper
c0b6e0013e include -test pkgs in aggregates
original commit: c655827dbad819b5812ad6db559be915ee72493a
2013-10-21 23:34:01 -04:00
Eric Dobson
39e27bee3c Small changes/fixes to rackunit.
* Add optional message for fail-check.
* Correctly shorten column name.

original commit: 02b9de16bd189e37ca22e9dde581b21e18f82083
2013-10-17 21:20:38 -07:00
Matthew Flatt
fe106c630c move some test & doc collections out of "racket-" pkgs to new pkgs
original commit: 1920ac59ab0607502641298fc575b66e6acd8c73
2013-10-15 17:50:32 -06:00
Matthew Flatt
2d7fb8663c fix doc package deps
original commit: 3df2a53acd23d20e0fb0a052053ca6dcd126af98
2013-10-15 13:13:53 -06:00
Jay McCarthy
81f5c67350 Fixing broken build and improving error message
original commit: 0182e3ff3341c79b2b828f4283ab8bfb8dfa77fb
2013-10-15 10:53:59 -06:00
Jay McCarthy
d567bf9ac7 Fixing PR14096
original commit: fe6b8f46b169eb105af6c29c8b38238f914a9b70
2013-10-15 10:38:26 -06:00
Ryan Culpepper
8966ebd203 show timing for suites in rackunit gui
original commit: 01fd205c9ab269a5d1cde81634eca93d0098bb43
2013-09-15 13:49:35 -04:00
Ryan Culpepper
305ea7dc4f extracted rackunit-gui package
original commit: 8512c365128064f3c1d3bdee768ce387cb358303
2013-09-15 13:49:35 -04:00
Tobias Hammer
241cec7565 Fix rackunit test/check-exn signature
original commit: 06eef213d84a0cfd239b9c9e115cd9c92d2a3431
2013-09-10 07:54:32 -06:00
Matthew Flatt
14c4579a16 move stray rackunit module
original commit: a30d80a9c462eec96c244cb458d3297bb7e5b616
2013-09-02 10:10:31 -06:00
Matthew Flatt
af471ef1bd include license with each package
original commit: ff9da94cfb852d25cd54bc0d9a904c8ae46fe64c
2013-08-31 06:25:31 -06:00
Matthew Flatt
d5a7e2075b auto-fix dependencies for "scheme-lib" and "srfi-lite-lib"
original commit: c709af5bf4d3af8f8c7a5918cf0b521ac1846f78
2013-08-27 15:20:58 -06:00
Robby Findler
f89f07a6f0 move rackunit's drracket plugin into its own pkg,
that you can now get via the (new) 'rackunit' pkg

original commit: ed5b2e6a4bfe2da46ecb67d33397d5b8e29e7169
2013-08-11 12:42:46 -05:00
Matthew Flatt
432f9fed39 add pkg-desc' and pkg-authors' to each package
This information will be used to construct a catalog from the
package directories.

original commit: 057bfc2ea1a24e85ece2d5f85da30076643ea598
2013-07-31 07:06:24 -06:00
Ryan Culpepper
b262a331b2 added checks to run-tests
Related to PR 13936.

original commit: a26101c63fcfbd42c0803203256554a7bbc8afec
2013-07-30 13:02:12 -04:00
Ryan Culpepper
daf3ac808a Revert "Add contract for run-tests."
Related to PR 13936.

This reverts commit 032e1ebf558087a4abc36394b01641c96138da08.

original commit: 58f29e7c7a65237e26cddab1e4a49ac665af4393
2013-07-30 12:08:48 -04:00
Matthew Flatt
a96b6f681c add "share", move "collects" back out of "lib", move "pkgs"
The "share" directory holds platform-independent files, while
"lib" holds platform-specific files.

In principle, the "collects" directory belongs in "share",
as does "doc". Those directories are put into "share"
by a Unix-style install, but left at top level for an
in-place install.

Packages in installation scope are put in "share" instead
of "lib", and the top-level Makefile puts development links
in "share/devel-pkgs".

The `configure' script now supports `--docdir' and `--collectsdir'.

Changed the version to 5.90.0.1.

original commit: 67a9889ef750ce88139e17da6d8f807adcccc68e
2013-07-19 11:52:02 -06:00
Matthew Flatt
a860a2387b misc changes to avoid absolute paths in bytecode files
In many cases, `path->collects-relative' is used instead of
`path->main-collects-relative' to generalize existing support
for collection-relative paths.

original commit: f87981f96057c26cb311e786a91229bf4a874e5b
2013-07-08 12:24:17 -06:00
Sam Tobin-Hochstadt
f0192efed2 Use #lang info instead of #lang setup/infotab.
original commit: 5a7ca7ebb56b2215f2d395ed052c03ea740817ea
2013-07-04 16:46:32 -04:00
Robby Findler
c3a3a4cc2a move drracket tests into their own package
original commit: e0f6a427750d476c1659d52297b9e188b7d221cf
2013-06-29 10:33:36 -05:00
Matthew Flatt
f833d9d488 auto-fix dependencies in "pkgs"
Left one dependency broken: "drracket" currently depends on "htdp" for
a test. That needs to be fixed by removing the dependency (moving the
test to "htdp?), instead of changing the declared dependencies.

original commit: 51290fd2a95def6bb3b6d3d735cb62444e157553
2013-06-29 06:51:19 -06:00
Matthew Flatt
7880e7f954 link development-mode packages in a separate pkg database
Use `PKGS' with the top-level makefile to select packages for
a development-mode build. The default is "main-distribution",
which includes all packages in "pkgs".

original commit: d450ee97075ef92e3356b6ae27e8a53419dd9732
2013-06-27 21:52:23 -06:00
Sam Tobin-Hochstadt
a5476d6ba0 Move rackunit to the rackunit-lib package.
The `rackunit/log` utility stays in the core, because it's
used by `raco test` and very small.

original commit: 52af4ed52ea55e9b9d6965f6113cb52d813cc5ce
2013-06-27 13:53:52 -04:00
Matthew Flatt
48ea72842a a step toward single-collection packages as default
A package's "info.rkt" file should define `collection' as a
string to name a single-collection package's collection, or as
the symbol 'multi to declare the package as multi-collection.
If `collection' is 'same-as-pkg, then the package name is used
as the collection name.

The default for `collection' is 'multi for now, but the intent
is to change the default to 'same-as-pkg after a conversion
period. Also, support for a `single-collection' definition remains
in place, but it wil be removed.

original commit: c738a6aa3eee89a82d577dd35c70eca8ed32f5b4
2013-06-25 22:46:23 +02:00
Matthew Flatt
8c08789023 reorganize into core plus packages
The "racket" directory contains a pared-back version of the
repository, roughly.

The "pkgs" directory everything else in the repository, but
organized into packages.

original commit: b2ebb0a28bf8136e75cd98316c22fe54c30eacb2
2013-06-19 09:01:37 -06:00
Matthew Flatt
e5f077c501 raco pkg create: support "source" and "binary" bundling
Adds `--from-dir' and `--from-install' flags to select the interpretation
of the argument as a directory or as the name of an installed package.
Relevant to PR 13669

Adds `--as-is' (the default), `--source', and `--binary' flags to
select a pruning mode.

The `raco setup' tool recognizes a `rendered-scribblings' specification
in "info.rkt" to trigger moving rendered documentation into place,
registering its tags in the cross-reference database, and fixing up
references to "local-redirect.js"; the presence of a "synced.rktd"
indicates when those fixups have been performed (since, if the package
is installed in a user-specific scope, the documentation doesn't actually
move anywhere). Finally, "out<n>.sxref" needs to report paths relative to
the documentation's directory, and then the relative-directory references
need to be suitably resolved at derserialization; some support for such
relative paths was in place, but it wasn't quite general enough before.

original commit: 198a65a5fc79649ec167d2407c35815768a119ba
2013-05-16 11:50:04 -06:00
Jay McCarthy
56024fc2ca Adding summary mode, quiet program mode and changing tests/eli-tester to cooperate so it adds useful information in summary mode
original commit: ccf1119b68063306a5f749e7df9d275b33c3445b
2013-05-02 14:49:58 -06:00
Jay McCarthy
56733328a4 Fixing standalone
original commit: 8a3f8318077954c5e8d8562fff108f42038cd3fd
2013-03-28 08:45:03 -06:00
Jay McCarthy
b7b42f0226 Fixing broken rackunit display tests
original commit: 169a9ea28d6e3e4e3f4642b87ddf7007dde264a0
2013-03-26 06:08:21 -06:00
Jay McCarthy
38f8b0cb3d Fixing broken rackunit tests
original commit: 04d723eea88ce3456856ae3f77e265304fa84f31
2013-03-22 07:45:14 -06:00
Jay McCarthy
38de84812e Adding test logging facility to rackunit and eli-tester, with its own test and docs
original commit: 804791b01153b24c9b14d978243fb4c46c7c5601
2013-03-21 07:02:50 -06:00
Eli Barzilay
635a8a229f Fix lots of indentation mistakes.
(Found by my ayatollah script...)

original commit: af6be85ff576e475753a46bd3f1690eb8bf88a28
2013-03-14 10:55:47 -04:00
Danny Yoo
f51a916705 Modify exn:test:check to support prop:exn:srclocs to produce good error messages even without debugging enabled.
Closes PR-13451.

original commit: f5e85a650314e24852e03edde4297ad355f984ab
2013-02-27 12:02:00 -07:00
Asumu Takikawa
ba15ee88bb Add for-label require
original commit: dcf2b0f4dcb4b242b6fe09c5ffedc1f42f5839e9
2012-11-20 13:31:05 -05:00
Joe Gibbs Politz
821efdce41 Add check-match to rackunit
check.rkt:
  Added the actual check-match macro.

test.rkt:
  Just a provide statement

check-test.rkt:
  7 additional tests for check-match, and a macro to help create tests

check.scrbl:
  Documentation and examples for check-match

original commit: e264e4148884f0675bd21e889525ccb7239eb4b4
2012-11-20 13:02:31 -05:00
Danny Yoo
dd6c2d2086 Add contract for run-tests.
original commit: 032e1ebf558087a4abc36394b01641c96138da08
2012-11-14 10:54:51 -07:00
Eli Barzilay
ffa29cb408 Lots of bad TAB eliminations.
I started from tabs that are not on the beginning of lines, and in
several places I did further cleanings.

If you're worried about knowing who wrote some code, for example, if you
get to this commit in "git blame", then note that you can use the "-w"
flag in many git commands to ignore whitespaces.  For example, to see
per-line authors, use "git blame -w <file>".  Another example: to see
the (*much* smaller) non-whitespace changes in this (or any other)
commit, use "git log -p -w -1 <sha1>".

original commit: 672910f27b856549ad08d38832b6714edf226c8e
2012-11-07 11:22:20 -05:00
Matthew Flatt
673a1233b9 Revert "Fixing Rackunit tests after alignment"
This reverts commit 4497c8ce5e9e0fd8ff65991242f3707ea42a77a4,
because the tests were correctly reporting a bug that I
introduced.

original commit: b95b1b9366436f039d497c3e1aa45283acb6498d
2012-08-15 09:34:17 -06:00
Matthew Flatt
6d7f64f6d5 fix rackunit formatting
Repairs mistake in 36f519fe64.

original commit: 02d2b4dd62730585b2aa70e30f40bb3e513b26e6
2012-08-15 07:41:49 -06:00
Jay McCarthy
0e811984f0 Fixing Rackunit tests after alignment
original commit: 4497c8ce5e9e0fd8ff65991242f3707ea42a77a4
2012-08-14 22:21:44 -06:00
Matthew Flatt
e6073f2774 remove rackunit' dependency on srfi/13'
Cuts the bytecode footprint of `rackunit' in half
(by more than 200 KB).

original commit: 36f519fe646296515baf0ac475b21f58719f8661
2012-08-14 09:48:56 -06:00
Eli Barzilay
ee25e05713 A bunch of typo fixes from Richard Cleis.
original commit: a7064d5f6ae6ac941df16f377dbbabdbbbc75865
2012-06-14 17:20:05 -04:00
John Clements
3d59b3de3c check-= uses magnitude to compare number differences
original commit: 9f9468f7c2cd7c8618f3575d384dd63c9c60598e
2012-05-03 10:55:49 -07:00
Matthew Flatt
65ed1d1d82 adjust some libraries to avoid converting paths to strings too early
Early conversions leave absolute paths in bytecode and rendered
documentation.

original commit: 9b569aa9a2ea5ac800c6ba50eb4f29452ecc1dd6
2012-02-10 06:17:18 -07:00
Jordan Schatz
2359fee772 Two typos in the rackunit docs
original commit: 8a2b06574aab93e9694aae62de20d4d194d8bd56
2012-02-04 03:05:00 -05:00
Ryan Culpepper
c0a88648e0 rackunit: change exn:test to extent exn:fail
closes PR 12393

original commit: 2e4d4e21ca4f6adc41f792f61030018ade4028c5
2011-12-02 14:41:17 -07:00