Ryan Dahl
35d0df919a
test: Allow common.ddCommand to be run in presence of existing file
14 years ago
Ryan Dahl
4983bd348d
x-platform func for spawning pwd in tests
Fixes test-child-process-buffering
14 years ago
Ryan Dahl
3ce4adf3c6
Remove unnecessary line
14 years ago
Ryan Dahl
3b0f2cecff
Fix dd command tests for Windows
14 years ago
Ryan Dahl
a6a3bf6d47
escape backslashes for windows pipe name
14 years ago
Ben Noordhuis
bff9602966
test: add common.PIPE, pipe name for tests
14 years ago
Ryan Dahl
52b517c6ab
Revert "Add --cov code coverage option"
This can be done in user space. EG https://github.com/cloudkick/whiskey
This reverts commit da9b3340eb
.
This reverts commit b4ff36a41b
.
Conflicts:
src/node.cc
14 years ago
Ryan Dahl
86214c9f16
tcp_wrap: Initial wrap of uv_read_start
14 years ago
Ryan Dahl
b4ff36a41b
Add --cov code coverage option
14 years ago
Jorge Chamorro Bieling
e7604b1ea7
Retain buffers in fs.read/write()
Closes GH-814.
Closes GH-827.
14 years ago
Ryan Dahl
55048cdf79
Update copyright headers
14 years ago
Ryan Dahl
aac5cbe025
HTTP Agent sockets should not reconnect on error
Closes GH-684.
14 years ago
Ryan Dahl
e9257b859d
New DTrace probes from CA team
14 years ago
Ryan Dahl
068b733583
Land Cantrill's DTrace patch
only works on solaris
14 years ago
Oleg Efimov
093dfaf801
GJSLint all tests, only 3 long lines left in test-url.js
test/simple/test-url.js:31:(0110) Line too long (82 characters).
test/simple/test-url.js:39:(0110) Line too long (85 characters).
test/simple/test-url.js:40:(0110) Line too long (92 characters).
14 years ago
Oleg Efimov
0665f0271e
GJSLint all simple tests exclude http-*, url, path
14 years ago
Oleg Efimov
0ce9cbab29
GJSLint continue
14 years ago
Ryan Dahl
02cc39f221
Check for global leaks in all tests
14 years ago
Micheil Smith
e38eb0c5a4
Soft migration of sys -> util, Removal of deprecated utils module.
14 years ago
isaacs
85fb47c11c
Better temporary directory handling for tests.
Add a setUp and tearDown function to the test case class, and use it to
create and remove the test/tmp directory for each test.
TODO: amend other tests.
15 years ago
Herbert Vojčík
cf2b206a8e
More changes to tests so they really work under context module loader.
Plus, getting rid of test/common.js defining things in global.
15 years ago
Ryan Dahl
9fd5e3c89c
Update tests to work with module contexts
15 years ago
Ryan Dahl
5f30377bbc
Load modules in individual contexts
Add NODE_MODULE_CONTEXTS env var
Only one test was modified to check that this works. NEED to go through all
tests and modify them so that
NODE_MODULE_CONTEXTS=1 make test
passes.
15 years ago
Ryan Dahl
a6f904cab7
Tests should use compiled-in modules not build-dir modules
15 years ago
isaacs
5861db8a69
Remove process.mixin dependency from all tests.
15 years ago
Felix Geisendörfer
44dde5f24c
Remove fs/path globals from test suite
It is way too easy to not notice bugs due to those modules being
exported as globals while running the test suite.
See: http://github.com/ry/node/issues#issue/75
15 years ago
arlolra
724ccf10df
Tests on common port.
15 years ago
Ryan Dahl
b08f2af344
Update common.js path for new test layout
15 years ago
arlolra
04fac19822
Split tests.
15 years ago
Ryan Dahl
b82ef28d9d
Rename 'posix' module to 'fs'
15 years ago
Karl Guertin
4f679fd8d0
Dependency free assert module with unit tests
15 years ago
Felix Geisendörfer
530328f12b
CommonJS testing for node.js
Refactored test suite to use the assert module for testing rather than
mjsunit.
15 years ago
Ryan Dahl
7a2e784ad7
Module refactor - almost CommonJS compatible now
API change summary:
* require("/sys.js") becomes require("sys")
* require("circle.js") becomes require("./circle")
* process.path.join() becomes require("path").join()
15 years ago
Ryan Dahl
ad0a4cefb8
Namespace EVERYTHING under process; introduce GLOBAL
http://groups.google.com/group/nodejs/browse_thread/thread/1034fd2ad2cd93e8
15 years ago
Ryan Dahl
3d8b14e6f7
node.fs.* moved into "/posix.js"
use require("/posix.js") to access them.
15 years ago
Ryan Dahl
04e53cab90
Rename node.libraryPaths to require.paths
to be more inline with CommonJS.
15 years ago
Ryan Dahl
8185e1fd25
Remove include() add node.mixin()
include() should not be used by libraries because it will pollute the global
namespace. To discourage this behavior and bring Node more in-line with
the current CommonJS module system, include() is removed.
Small scripts like unit tests often times do want to pollute the global
namespace for ease. To avoid the boiler plate code of
var x = require("/x.js");
var foo = x.foo;
var bar = x.bar;
The function node.mixin() is stolen from jQuery's jQuery.extend. So that it
can be written:
node.mixin(require("/x.js"));
Reference:
http://docs.jquery.com/Utilities/jQuery.extend
http://groups.google.com/group/nodejs/browse_thread/thread/f9ac83e5c11e7e87
15 years ago
Ryan Dahl
7abad8b7b3
API: Move node.puts(), node.exec() and others to /utils.js
15 years ago
Ryan Dahl
4b8f503fac
Move mjsunit.js to system module directory.
15 years ago