Skip to content

Latest commit

 

History

36 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

This package is deprecated.

Flycheck's built-in d-dmd checker covers this use case: to check unittest blocks, pass the flags this package hardcoded:

(setq flycheck-dmd-args '("-unittest" "-main"))

This repository will be archived and receives no further updates.

Flycheck-d-unittest

This library adds D unittest support to flycheck.

Requirements:

You can install it by using package-install via MELPA.

To use this package, add the following line to your .emacs file:

    (require 'flycheck-d-unittest)
    (setup-flycheck-d-unittest)

It detects any compile errors, warnings and deprecated features during unittest.

Note: Flycheck-d-unittest runs DMD with -unittest and -main option for unittesting. Please enclose main function in version(!unittest) block as follows:

import std.stdio;

version(unittest) {}
else
void main()
{
    writeln("Hello!");
}

unittest
{
    assert(1+2 == 3);
}

Link:

About

This library adds D unittest support to flycheck.

Resources

Stars

7 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages