Change request #677

Improve plugin tests

Added by David Demelier 12 months ago. Updated 10 months ago.

Status:ClosedStart date:08/07/2017
Priority:NormalDue date:
Assignee:David Demelier% Done:

100%

Category:TestsEstimated time:2.00 h
Target version:3.0.0
MFD after: Bookmark:@
MFD revision: Submitted by:
Branch:default

Description

The unit tests of plugins require the code to load the plugin by itself.

Add CMake variables

  1. PLUGIN_NAME, the current plugin name (e.g. hangman)
  2. PLUGIN_PATH, the current plugin path (e.g. CMAKE_SOURCE_DIR/.../hangman.js)

Update plugin_test

Make it load the plugin automatically in the fixture constructor.

class plugin_test {
protected:
    irccd::irccd irccd_;
    std::shared_ptr<plugin> plugin_;

public:
    void plugin_test()
    {
    }
};     

Associated revisions

Revision 486:22ac18e1f4db
Added by David Demelier 11 months ago

Tests: create plugin_test fixture, closes #677

Improve plugin tests by using a dedicated fixture which automatically loads the
plugin and enable some modules on it.

History

#1 Updated by David Demelier 12 months ago

  • Description updated (diff)

#2 Updated by David Demelier 10 months ago

  • % Done changed from 0 to 100
  • Status changed from New to Resolved

#3 Updated by David Demelier 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF