Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Andrei Alexandrescu via Digitalmars-d-announce
On 05/17/2016 10:22 AM, Meta wrote: On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will Test's

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Marc Schütz via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:22:51 UTC, Meta wrote: On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Atila Neves via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 14:22:51 UTC, Meta wrote: On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Meta via Digitalmars-d-announce
On Tuesday, 17 May 2016 at 09:54:15 UTC, Marc Schütz wrote: You surely mean "used to be destroy", right? Good question... If I write this: struct Test { ~this() { writeln("destroying Test"); } } with (Test()) { //Do stuff } Will Test's destructor be run once we exit the `with`

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-17 Thread Marc Schütz via Digitalmars-d-announce
On Monday, 16 May 2016 at 14:39:22 UTC, Meta wrote: On Monday, 16 May 2016 at 08:37:48 UTC, Atila Neves wrote: with(immutable Sandbox()) { writeFile("foo.txt", "foobarbaz\ntoto"); // can also pass string[] for lines shouldExist("foo.txt"); shouldNotExist("bar.txt");

Re: unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-16 Thread Meta via Digitalmars-d-announce
On Monday, 16 May 2016 at 08:37:48 UTC, Atila Neves wrote: with(immutable Sandbox()) { writeFile("foo.txt", "foobarbaz\ntoto"); // can also pass string[] for lines shouldExist("foo.txt"); shouldNotExist("bar.txt"); shouldEqualLines("foo.txt", ["foobarbaz", "toto"]); } That's

unit-threaded v0.6.13 - tags, autotags and support for integration tests

2016-05-16 Thread Atila Neves via Digitalmars-d-announce
Advanced multi-threaded unit testing framework with minimal to no boilerplate: http://code.dlang.org/packages/unit-threaded What's new: . Tags. While selecting which tests to run by package or module is definitely handy and mostly what one wants, sometimes there are cross-cutting