On Friday, 28 July 2017 at 21:54:27 UTC, Arun Chandrasekaran
wrote:
What are they using for HTTP now?
Currently, we're using our own utilities, based on
https://github.com/dlang/undeaD/blob/master/src/undead/socketstream.d (with the mentioned garbage-collection issue).
https://github.com/funkwerk/depend
depend checks actual import dependencies against a PlantUML model
of target dependencies.
In contrast to dhier, depend makes use of the import dependencies
created by dmd with the --deps switch.
In our company, we use this tool with CI to guard the
https://github.com/linkrope/dunit/tree/v0.7.0
The xUnit testing framework for D is used in production for one
year now.
The latest changes are:
- added XML test reporting in JUnitReport format
- dub support
- changed @Ignore to @Ignore(reason to skip the test)
- added assertOp together
(this one:
https://github.com/linkrope/dunit).
For our software, we even separate the 'src' tree from the
'unittest' tree to not distort the coverage results.
2. Asserting results
Varies from the builtin assert() to xUnit-like assertEquals()
to the more verbose x.must.equal(y) used in specd
Same hint as for specd: have a look at 'assertOp'!
http://d.puremagic.com/issues/show_bug.cgi?id=4653
alias assertOp! assertGreaterThan;
alias assertOp!= assertGreaterThanOrEqual;
alias assertOp! assertLessThan;
alias assertOp!= assertLessThanOrEqual;
avoids duplicate code.
Maybe, you can do
Have a look at https://github.com/linkrope/dunit, especially at
the Related Projects.
Until now, my preferred tool for (large-scale) unit testing in D
would be the combination of my dunit framework (of course),
DMocks-revived for mocks, and the 'must' matchers of specd.
How does your toolkit
do to color the unit-test results:
https://github.com/linkrope/dunit/blob/master/dunit/color.d
On Tuesday, 27 August 2013 at 15:42:28 UTC, Andrej Mitrovic wrote:
I have some of these functions here:
https://github.com/AndrejMitrovic/minilib/blob/master/src/minilib/core/test.d
Where is your 'assertOp' from the comments of issue 4653?
I recently added it to https://github.com/linkrope
Add some variable to the test case: bool finished;
Set the variable in the callback: finished = true;
Add something like
assertWithTimeout({return finished;});
at the end of the test case, following ev.run;
Does it help?
On Wednesday, 29 August 2012 at 19:20:25 UTC, Shripad K wrote:
How